[tor-commits] [Git][tpo/applications/tor-browser][base-browser-115.2.0esr-13.0-1] fixup! Bug 18905: Hide unwanted items from help menu
richard (@richard)
git at gitlab.torproject.org
Mon Aug 21 18:56:22 UTC 2023
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/225930cb437ec34544b5433dc15ec2bd24e2328d
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/225930cb437ec34544b5433dc15ec2bd24e2328d
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230821/033ebc8f/attachment-0001.htm>
More information about the tor-commits
mailing list