richard pushed to branch base-browser-115.2.0esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits: 225930cb by cypherpunks1 at 2023-08-21T18:55:53+00: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:
- browser/base/content/appmenu-viewcache.inc.xhtml - browser/base/content/browser.js
Changes:
===================================== browser/base/content/appmenu-viewcache.inc.xhtml ===================================== @@ -53,8 +53,7 @@ class="subviewbutton" data-l10n-id="appmenuitem-new-private-window" key="key_privatebrowsing" - command="Tools:PrivateBrowsing" - hidden="true"/> + command="Tools:PrivateBrowsing"/> <toolbarseparator/> <toolbarbutton id="appMenu-new-identity" class="subviewbutton"
===================================== browser/base/content/browser.js ===================================== @@ -1762,7 +1762,7 @@ var gBrowserInit = { this._boundDelayedStartup = this._delayedStartup.bind(this); window.addEventListener("MozAfterPaint", this._boundDelayedStartup);
- if (!PrivateBrowsingUtils.enabled) { + if (PrivateBrowsingUtils.permanentPrivateBrowsing || !PrivateBrowsingUtils.enabled) { document.getElementById("Tools:PrivateBrowsing").hidden = true; // Setting disabled doesn't disable the shortcut, so we just remove // the keybinding.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/225930cb...
tbb-commits@lists.torproject.org