Skip to content
Snippets Groups Projects
Commit c4842b0d authored by ma1's avatar ma1 Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 40926: Implemented the New Identity feature

Bug 42532: Use the HomePage module for new identity checks.
parent d2c0ff30
Branches
No related tags found
1 merge request!126MB 310: Rebased MB 13.0 onto 115.12.0esr
......@@ -429,15 +429,12 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => {
return new Promise(resolve => {
// Open a new window forcing the about:privatebrowsing page (tor-browser#41765)
// unless user explicitly overrides this policy (tor-browser #42236)
const homePref = "browser.startup.homepage";
const trustedHomePref = "browser.startup.homepage.new_identity";
const homeURL = Services.prefs.getStringPref(homePref, "");
const defaultHomeURL = Services.prefs
.getDefaultBranch("")
.getStringPref(homePref, "");
const homeURL = HomePage.get();
const defaultHomeURL = HomePage.getDefault();
const isTrustedHome =
homeURL === defaultHomeURL ||
homeURL.startsWith("chrome://") || // about:blank and other built-ins
homeURL === "chrome://browser/content/blanktab.html" || // about:blank
homeURL === Services.prefs.getStringPref(trustedHomePref, "");
const isCustomHome =
Services.prefs.getIntPref("browser.startup.page") === 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment