Skip to content
Snippets Groups Projects
Verified Commit f1394ce2 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 40925: Implemented the Security Level component

Bug 42704: Drop the "badged" attribute from the security level button.
parent 739d6aa0
Branches
Tags
2 merge requests!1202Bug_43099: 2024 YEC Strings,!1136Bug 43085: Rebased alpha onto 128.2.0esr
......@@ -69,7 +69,6 @@ var SecurityLevelButton = {
* Open the panel popup for the button.
*/
openPopup() {
let anchorNode;
const overflowPanel = document.getElementById("widget-overflow");
if (overflowPanel.contains(this._button)) {
// We are in the overflow panel.
......@@ -84,10 +83,8 @@ var SecurityLevelButton = {
// panel rather than our dialog-like panel.
overflowPanel.hidePopup();
this._anchorButton = document.getElementById("nav-bar-overflow-button");
anchorNode = this._anchorButton.icon;
} else {
this._anchorButton = this._button;
anchorNode = this._button.badgeStack;
}
const panel = SecurityLevelPanel.panel;
......@@ -103,7 +100,13 @@ var SecurityLevelButton = {
});
}
panel.openPopup(anchorNode, "bottomright topright", 0, 0, false);
panel.openPopup(
this._anchorButton.icon,
"bottomright topright",
0,
0,
false
);
},
init() {
......
<toolbarbutton id="security-level-button"
class="toolbarbutton-1 chromeclass-toolbar-additional"
badged="true"
removable="true"
cui-areatype="toolbar"/>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment