Skip to content
Snippets Groups Projects
Verified Commit ed19d5f4 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 db383978
Branches
Tags
No related merge requests found
......@@ -432,8 +432,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