ma1 pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser Commits: 8244638a by hackademix at 2026-04-15T17:54:03+02:00 fixup! BB 40926: Implemented the New Identity feature BB 44288: Regression, custom home page not blocked anymore on new identity. - - - - - 2 changed files: - browser/components/newidentity/content/newidentity.js - browser/modules/BrowserWindowTracker.sys.mjs Changes: ===================================== browser/components/newidentity/content/newidentity.js ===================================== @@ -402,7 +402,8 @@ ChromeUtils.defineLazyGetter(this, "NewIdentityButton", () => { const isCustomHome = Services.prefs.getIntPref("browser.startup.page") === 1; const win = OpenBrowserWindow({ - private: isCustomHome && isTrustedHome ? "private" : "no-home", + private: true, + skipCustomHome: !(isCustomHome && isTrustedHome), }); // This mechanism to know when the new window is ready is used by // OpenBrowserWindow itself (see its definition in browser.js). @@ -435,7 +436,7 @@ ChromeUtils.defineLazyGetter(this, "NewIdentityButton", () => { } const callback = () => { Services.prefs.setStringPref(trustedHomePref, homeURL); - win.BrowserHome(); + win.BrowserCommands.home(); }; const notificationBox = win.gBrowser.getNotificationBox(); notificationBox.appendNotification( ===================================== browser/modules/BrowserWindowTracker.sys.mjs ===================================== @@ -330,6 +330,7 @@ export const BrowserWindowTracker = { args = null, remote = undefined, fission = undefined, + skipCustomHome = false, } = options; args = lazy.AIWindow.handleAIWindowOptions(options); @@ -346,7 +347,7 @@ export const BrowserWindowTracker = { windowFeatures += ",private"; if ( (!args && !lazy.PrivateBrowsingUtils.permanentPrivateBrowsing) || - args?.private === "no-home" + skipCustomHome ) { // Force the new window to load about:privatebrowsing instead of the // default home page. View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8244638a... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8244638a... 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
participants (1)
-
ma1 (@ma1)