morgan pushed to branch tor-browser-153.2.0esr-16.0-1 at The Tor Project / Applications / Tor Browser Commits: 0a4c8822 by Henry Wilkes at 2026-09-08T11:51:34+00:00 fixup! TB 40562: Added Tor Browser preferences to 000-tor-browser.js TB 45262: Hide the reset PBM button. - - - - - b5450a03 by Henry Wilkes at 2026-09-08T11:51:34+00:00 fixup! TB 41736: Customize toolbar for tor-browser. TB 45262: Hide the reset PBM button. - - - - - 2 changed files: - browser/app/profile/000-tor-browser.js - browser/components/customizableui/CustomizableUI.sys.mjs Changes: ===================================== browser/app/profile/000-tor-browser.js ===================================== @@ -58,6 +58,8 @@ pref("browser.base-browser-support-url", "https://support.torproject.org/tor-bro // tor-browser#40701: Add new download warning pref("browser.download.showTorWarning", true); +// tor-browser#45262: Hide "reset PBM" burn/fire button. +pref("browser.privatebrowsing.resetPBM.enabled", false); // Tor connection setting preferences. ===================================== browser/components/customizableui/CustomizableUI.sys.mjs ===================================== @@ -78,7 +78,7 @@ const NoScriptId = "_73a6fe31-595d-460b-a920-fcc0f8843232_-browser-action"; /** * The current version for tor browser. */ -var kVersionTorBrowser = 1; +var kVersionTorBrowser = 2; /** * Buttons removed from built-ins by version they were removed. kVersion must be @@ -215,13 +215,6 @@ XPCOMUtils.defineLazyPreferenceGetter( } ); -XPCOMUtils.defineLazyPreferenceGetter( - lazy, - "resetPBMToolbarButtonEnabled", - "browser.privatebrowsing.resetPBM.enabled", - false -); - XPCOMUtils.defineLazyPreferenceGetter( lazy, "sidebarRevampEnabled", @@ -387,7 +380,11 @@ var CustomizableUIInternal = { AppConstants.MOZ_DEV_EDITION ? "developer-button" : null, lazy.ippEnabled ? "ipprotection-button" : null, "fxa-toolbar-menu-button", - lazy.resetPBMToolbarButtonEnabled ? "reset-pbm-toolbar-button" : null, + // Remove reset-pbm-toolbar-button unconditionally. + // NOTE: If we want to re-show this button, we may want to position it + // elsewhere (just after security-level-button), and we will likely want + // to migrate existing users so that it takes the place of the + // new-identity-button. tor-browser#45262. ].filter(name => name); this.registerArea( @@ -1126,6 +1123,17 @@ var CustomizableUIInternal = { } } } + + if (currentVersion < 2) { + // Remove the reset-pbm button that was added in version 24 in + // `updateForNewVersion`. tor-browser#45262. + for (const placements of Object.values(gSavedState.placements)) { + let buttonIndex = placements.indexOf("reset-pbm-toolbar-button"); + if (buttonIndex != -1) { + placements.splice(buttonIndex, 1); + } + } + } }, /** View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/d673cb2... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/d673cb2... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help