morgan pushed to branch base-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser

Commits:

2 changed files:

Changes:

  • browser/components/securitylevel/content/securityLevel.js
    ... ... @@ -69,7 +69,6 @@ var SecurityLevelButton = {
    69 69
        * Open the panel popup for the button.
    
    70 70
        */
    
    71 71
       openPopup() {
    
    72
    -    let anchorNode;
    
    73 72
         const overflowPanel = document.getElementById("widget-overflow");
    
    74 73
         if (overflowPanel.contains(this._button)) {
    
    75 74
           // We are in the overflow panel.
    
    ... ... @@ -84,10 +83,8 @@ var SecurityLevelButton = {
    84 83
           // panel rather than our dialog-like panel.
    
    85 84
           overflowPanel.hidePopup();
    
    86 85
           this._anchorButton = document.getElementById("nav-bar-overflow-button");
    
    87
    -      anchorNode = this._anchorButton.icon;
    
    88 86
         } else {
    
    89 87
           this._anchorButton = this._button;
    
    90
    -      anchorNode = this._button.badgeStack;
    
    91 88
         }
    
    92 89
     
    
    93 90
         const panel = SecurityLevelPanel.panel;
    
    ... ... @@ -103,7 +100,13 @@ var SecurityLevelButton = {
    103 100
           });
    
    104 101
         }
    
    105 102
     
    
    106
    -    panel.openPopup(anchorNode, "bottomright topright", 0, 0, false);
    
    103
    +    panel.openPopup(
    
    104
    +      this._anchorButton.icon,
    
    105
    +      "bottomright topright",
    
    106
    +      0,
    
    107
    +      0,
    
    108
    +      false
    
    109
    +    );
    
    107 110
       },
    
    108 111
     
    
    109 112
       init() {
    

  • browser/components/securitylevel/content/securityLevelButton.inc.xhtml
    1 1
     <toolbarbutton id="security-level-button"
    
    2 2
                    class="toolbarbutton-1 chromeclass-toolbar-additional"
    
    3
    -               badged="true"
    
    4 3
                    removable="true"
    
    5 4
                    cui-areatype="toolbar"/>