ma1 pushed to branch tor-browser-115.3.1esr-13.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
c62d3405
by hackademix at 2023-10-05T17:34:00+02:00
2 changed files:
Changes:
... | ... | @@ -4585,7 +4585,7 @@ function OpenBrowserWindow(options) { |
4585 | 4585 | var extraFeatures = "";
|
4586 | 4586 | if (options && options.private && PrivateBrowsingUtils.enabled) {
|
4587 | 4587 | extraFeatures = ",private";
|
4588 | - if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
|
|
4588 | + if (!PrivateBrowsingUtils.permanentPrivateBrowsing || options.private === "no-home") {
|
|
4589 | 4589 | // Force the new window to load about:privatebrowsing instead of the default home page
|
4590 | 4590 | defaultArgs = "about:privatebrowsing";
|
4591 | 4591 | }
|
... | ... | @@ -433,11 +433,8 @@ XPCOMUtils.defineLazyGetter(this, "NewIdentityButton", () => { |
433 | 433 | openNewWindow() {
|
434 | 434 | logger.info("Opening a new window");
|
435 | 435 | return new Promise(resolve => {
|
436 | - // Open a new window with the default homepage
|
|
437 | - // We could pass {private: true} but we do not because we enforce
|
|
438 | - // browser.privatebrowsing.autostart = true.
|
|
439 | - // What about users that change settings?
|
|
440 | - const win = OpenBrowserWindow();
|
|
436 | + // Open a new window forcing the about:privatebrowsing page (tor-browser#41765)
|
|
437 | + const win = OpenBrowserWindow({private: "no-home"});
|
|
441 | 438 | // This mechanism to know when the new window is ready is used by
|
442 | 439 | // OpenBrowserWindow itself (see its definition in browser.js).
|
443 | 440 | win.addEventListener("MozAfterPaint", () => resolve(), { once: true });
|