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
1 changed file:
Changes:
... | ... | @@ -429,15 +429,12 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => { |
429 | 429 | return new Promise(resolve => {
|
430 | 430 | // Open a new window forcing the about:privatebrowsing page (tor-browser#41765)
|
431 | 431 | // unless user explicitly overrides this policy (tor-browser #42236)
|
432 | - const homePref = "browser.startup.homepage";
|
|
433 | 432 | const trustedHomePref = "browser.startup.homepage.new_identity";
|
434 | - const homeURL = Services.prefs.getStringPref(homePref, "");
|
|
435 | - const defaultHomeURL = Services.prefs
|
|
436 | - .getDefaultBranch("")
|
|
437 | - .getStringPref(homePref, "");
|
|
433 | + const homeURL = HomePage.get();
|
|
434 | + const defaultHomeURL = HomePage.getDefault();
|
|
438 | 435 | const isTrustedHome =
|
439 | 436 | homeURL === defaultHomeURL ||
|
440 | - homeURL.startsWith("chrome://") || // about:blank and other built-ins
|
|
437 | + homeURL === "chrome://browser/content/blanktab.html" || // about:blank
|
|
441 | 438 | homeURL === Services.prefs.getStringPref(trustedHomePref, "");
|
442 | 439 | const isCustomHome =
|
443 | 440 | Services.prefs.getIntPref("browser.startup.page") === 1;
|