morgan pushed to branch tor-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits: fdad7c54 by Henry Wilkes at 2024-08-07T22:46:23+00:00 fixup! Bug 40925: Implemented the Security Level component
Bug 42704: Drop the "badged" attribute from the security level button.
- - - - -
2 changed files:
- browser/components/securitylevel/content/securityLevel.js - browser/components/securitylevel/content/securityLevelButton.inc.xhtml
Changes:
===================================== browser/components/securitylevel/content/securityLevel.js ===================================== @@ -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() {
===================================== browser/components/securitylevel/content/securityLevelButton.inc.xhtml ===================================== @@ -1,5 +1,4 @@ <toolbarbutton id="security-level-button" class="toolbarbutton-1 chromeclass-toolbar-additional" - badged="true" removable="true" cui-areatype="toolbar"/>
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fdad7c54...