Skip to content
Snippets Groups Projects
Verified Commit 96048e5a authored by ma1's avatar ma1
Browse files

fixup! Bug 40926: Implemented the New Identity feature

MB 283: Make new identity homepage check brand-agnostic.
parent b0ff311a
Branches
Tags
No related merge requests found
......@@ -398,8 +398,11 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => {
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 isTrustedHome =
homeURL === "about:tor" ||
homeURL === defaultHomeURL ||
homeURL.startsWith("chrome://") || // about:blank and other built-ins
homeURL === Services.prefs.getStringPref(trustedHomePref, "");
const isCustomHome =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment