ma1 pushed to branch tor-browser-115.10.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
d98ff16e
by hackademix at 2024-04-22T17:06:04+02:00
1 changed file:
Changes:
... | ... | @@ -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;
|