[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

  • browser/components/newidentity/content/newidentity.js
    ... ... @@ -398,8 +398,11 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => {
    398 398
             const homePref = "browser.startup.homepage";
    
    399 399
             const trustedHomePref = "browser.startup.homepage.new_identity";
    
    400 400
             const homeURL = Services.prefs.getStringPref(homePref, "");
    
    401
    +        const defaultHomeURL = Services.prefs
    
    402
    +          .getDefaultBranch("")
    
    403
    +          .getStringPref(homePref, "");
    
    401 404
             const isTrustedHome =
    
    402
    -          homeURL === "about:tor" ||
    
    405
    +          homeURL === defaultHomeURL ||
    
    403 406
               homeURL.startsWith("chrome://") || // about:blank and other built-ins
    
    404 407
               homeURL === Services.prefs.getStringPref(trustedHomePref, "");
    
    405 408
             const isCustomHome =
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits