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:
- 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
=====================================
@@ -1801,7 +1801,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/2791be7c75f210dfb9b702eff6baac00bd5ba985
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2791be7c75f210dfb9b702eff6baac00bd5ba985
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits