ma1 pushed to branch mullvad-browser-115.3.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

2 changed files:

Changes:

  • browser/base/content/browser.js
    ... ... @@ -4523,7 +4523,7 @@ function OpenBrowserWindow(options) {
    4523 4523
       var extraFeatures = "";
    
    4524 4524
       if (options && options.private && PrivateBrowsingUtils.enabled) {
    
    4525 4525
         extraFeatures = ",private";
    
    4526
    -    if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
    
    4526
    +    if (!PrivateBrowsingUtils.permanentPrivateBrowsing || options.private === "no-home") {
    
    4527 4527
           // Force the new window to load about:privatebrowsing instead of the default home page
    
    4528 4528
           defaultArgs = "about:privatebrowsing";
    
    4529 4529
         }
    

  • browser/components/newidentity/content/newidentity.js
    ... ... @@ -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 });