Loading browser/components/newidentity/content/newidentity.js +3 −2 Original line number Diff line number Diff line Loading @@ -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). Loading Loading @@ -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( Loading browser/modules/BrowserWindowTracker.sys.mjs +2 −1 Original line number Diff line number Diff line Loading @@ -296,6 +296,7 @@ export const BrowserWindowTracker = { args = null, remote = undefined, fission = undefined, skipCustomHome = false, } = {}) { let windowFeatures = "chrome,dialog=no,all"; if (features) { Loading @@ -306,7 +307,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. Loading Loading
browser/components/newidentity/content/newidentity.js +3 −2 Original line number Diff line number Diff line Loading @@ -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). Loading Loading @@ -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( Loading
browser/modules/BrowserWindowTracker.sys.mjs +2 −1 Original line number Diff line number Diff line Loading @@ -296,6 +296,7 @@ export const BrowserWindowTracker = { args = null, remote = undefined, fission = undefined, skipCustomHome = false, } = {}) { let windowFeatures = "chrome,dialog=no,all"; if (features) { Loading @@ -306,7 +307,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. Loading