Pier Angelo Vendrame pushed to branch tor-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
9506e131
by Henry Wilkes at 2024-08-07T10:21:51+01:00
1 changed file:
Changes:
... | ... | @@ -1409,14 +1409,6 @@ var BookmarkingUI = { |
1409 | 1409 | if (!uri) {
|
1410 | 1410 | return false;
|
1411 | 1411 | }
|
1412 | - // If uri is "about:tor" then we return true. See tor-browser#41717.
|
|
1413 | - // NOTE: "about:newtab", "about:welcome", "about:home" and
|
|
1414 | - // "about:privatebrowsing" can also redirect to "about:tor".
|
|
1415 | - // NOTE: We do not simply add "about:tor" to newTabURLs below because this
|
|
1416 | - // would also match "about:torconnect".
|
|
1417 | - if (uri.scheme === "about" && uri.filePath === "tor") {
|
|
1418 | - return true;
|
|
1419 | - }
|
|
1420 | 1412 | // Prevent loading AboutNewTab.sys.mjs during startup path if it
|
1421 | 1413 | // is only the newTabURL getter we are interested in.
|
1422 | 1414 | let newTabURL = Cu.isESModuleLoaded(
|
... | ... | @@ -1435,6 +1427,10 @@ var BookmarkingUI = { |
1435 | 1427 | newTabURL,
|
1436 | 1428 | "about:home",
|
1437 | 1429 | "chrome://browser/content/blanktab.html",
|
1430 | + // Add the "about:tor" uri. See tor-browser#41717.
|
|
1431 | + // NOTE: "about:newtab", "about:welcome", "about:home" and
|
|
1432 | + // "about:privatebrowsing" can also redirect to "about:tor".
|
|
1433 | + "about:tor",
|
|
1438 | 1434 | ];
|
1439 | 1435 | if (PrivateBrowsingUtils.isWindowPrivate(window)) {
|
1440 | 1436 | newTabURLs.push("about:privatebrowsing");
|