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

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



Title: GitLab

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

Commits:

  • 5616a8da
    by hackademix at 2024-04-22T18:26:36+02:00
    fixup! Bug 40926: Implemented the New Identity feature
    
    Bug 42532: Use the HomePage module for new identity checks.
    

1 changed file:

Changes:

  • browser/components/newidentity/content/newidentity.js
    ... ... @@ -395,15 +395,12 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => {
    395 395
           return new Promise(resolve => {
    
    396 396
             // Open a new window forcing the about:privatebrowsing page (tor-browser#41765)
    
    397 397
             // unless user explicitly overrides this policy (tor-browser #42236)
    
    398
    -        const homePref = "browser.startup.homepage";
    
    399 398
             const trustedHomePref = "browser.startup.homepage.new_identity";
    
    400
    -        const homeURL = Services.prefs.getStringPref(homePref, "");
    
    401
    -        const defaultHomeURL = Services.prefs
    
    402
    -          .getDefaultBranch("")
    
    403
    -          .getStringPref(homePref, "");
    
    399
    +        const homeURL = HomePage.get();
    
    400
    +        const defaultHomeURL = HomePage.getDefault();
    
    404 401
             const isTrustedHome =
    
    405 402
               homeURL === defaultHomeURL ||
    
    406
    -          homeURL.startsWith("chrome://") || // about:blank and other built-ins
    
    403
    +          homeURL === "chrome://browser/content/blanktab.html" || // about:blank
    
    407 404
               homeURL === Services.prefs.getStringPref(trustedHomePref, "");
    
    408 405
             const isCustomHome =
    
    409 406
               Services.prefs.getIntPref("browser.startup.page") === 1;
    

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