Verified Commit 1c3780c3 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 54e1ff1a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 =