[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-115.9.0esr-13.5-1] fixup! Bug 40926: Implemented the New Identity feature

ma1 (@ma1) git at gitlab.torproject.org
Mon Apr 8 07:39:51 UTC 2024



ma1 pushed to branch base-browser-115.9.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
96048e5a by hackademix at 2024-04-08T09:39:24+02:00
fixup! Bug 40926: Implemented the New Identity feature

MB 283: Make new identity homepage check brand-agnostic.

- - - - -


1 changed file:

- browser/components/newidentity/content/newidentity.js


Changes:

=====================================
browser/components/newidentity/content/newidentity.js
=====================================
@@ -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 =



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/96048e5a606a85de4ce8f913f72c1a0b6aa81a9b

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/96048e5a606a85de4ce8f913f72c1a0b6aa81a9b
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240408/4492f4a1/attachment.htm>


More information about the tbb-commits mailing list