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

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Thu May 9 10:21:59 UTC 2024



Pier Angelo Vendrame pushed to branch tor-browser-115.11.0esr-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
10474e51 by hackademix at 2024-05-09T12:21:45+02:00
fixup! Bug 40926: Implemented the New Identity feature

Bug 42532: Use the HomePage module for new identity checks.

- - - - -


1 changed file:

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


Changes:

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



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

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/10474e51a1f444c4bd7a2e1e92783014916bab22
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/20240509/ad1c3df1/attachment-0001.htm>


More information about the tbb-commits mailing list