[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.2.0esr-13.0-1] fixup! Bug 18905: Hide unwanted items from help menu



Title: GitLab

richard pushed to branch tor-browser-115.2.0esr-13.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 2791be7c
    by cypherpunks1 at 2023-08-21T09:36:11-08:00
    fixup! Bug 18905: Hide unwanted items from help menu
    
    Bug 41642: Hide the new private window option only when autostart of PBM is enabled
    

2 changed files:

Changes:

  • browser/base/content/appmenu-viewcache.inc.xhtml
    ... ... @@ -53,8 +53,7 @@
    53 53
                          class="subviewbutton"
    
    54 54
                          data-l10n-id="appmenuitem-new-private-window"
    
    55 55
                          key="key_privatebrowsing"
    
    56
    -                     command="Tools:PrivateBrowsing"
    
    57
    -                     hidden="true"/>
    
    56
    +                     command="Tools:PrivateBrowsing"/>
    
    58 57
           <toolbarseparator/>
    
    59 58
           <toolbarbutton id="appMenu-new-identity"
    
    60 59
                          class="subviewbutton"
    

  • browser/base/content/browser.js
    ... ... @@ -1801,7 +1801,7 @@ var gBrowserInit = {
    1801 1801
         this._boundDelayedStartup = this._delayedStartup.bind(this);
    
    1802 1802
         window.addEventListener("MozAfterPaint", this._boundDelayedStartup);
    
    1803 1803
     
    
    1804
    -    if (!PrivateBrowsingUtils.enabled) {
    
    1804
    +    if (PrivateBrowsingUtils.permanentPrivateBrowsing || !PrivateBrowsingUtils.enabled) {
    
    1805 1805
           document.getElementById("Tools:PrivateBrowsing").hidden = true;
    
    1806 1806
           // Setting disabled doesn't disable the shortcut, so we just remove
    
    1807 1807
           // the keybinding.
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits