
henry pushed to branch mullvad-browser-140.0esr-15.0-1 at The Tor Project / Applications / Mullvad Browser Commits: 97229a59 by Henry Wilkes at 2025-07-16T18:10:58+01:00 fixup! MB 112: Updater customization for Mullvad Browser TB 42738: Move override logic to the about:mullvad-browser commit. - - - - - 2909cc84 by Henry Wilkes at 2025-07-16T18:10:59+01:00 fixup! MB 39: Add home page about:mullvad-browser TB 43929: Update about:mullvad-browser override page logic for ESR 140. TB 42738: Move these changes to the about:mullvad-browser commit. - - - - - 1 changed file: - browser/components/BrowserContentHandler.sys.mjs Changes: ===================================== browser/components/BrowserContentHandler.sys.mjs ===================================== @@ -781,6 +781,7 @@ nsBrowserContentHandler.prototype = { var overridePage = ""; var additionalPage = ""; var willRestoreSession = false; + let openAboutMullvadBrowser = false; try { // Read the old value of homepage_override.mstone before // needHomepageOverride updates it, so that we can later add it to the @@ -986,13 +987,8 @@ nsBrowserContentHandler.prototype = { "mullvadbrowser.post_update.shouldNotify", true ); - // If the user's homepage is about:mullvad-browser, we will inform - // them about the update on that page; otherwise, we arrange to - // open about:mullvad-browser in a secondary tab. - overridePage = - startPage === "about:mullvad-browser" - ? "" - : "about:mullvad-browser"; + openAboutMullvadBrowser = true; + overridePage = "about:mullvad-browser"; } break; } @@ -1093,6 +1089,16 @@ nsBrowserContentHandler.prototype = { startPage = ""; } + // If the user's homepage is about:mullvad-browser, we do not want to open + // it twice with the override. + if ( + openAboutMullvadBrowser && + startPage === "about:mullvad-browser" && + overridePage?.split("|").includes("about:mullvad-browser") + ) { + startPage = ""; + } + // Only show the startPage if we're not restoring an update session and are // not set to skip the start page on this profile if (overridePage && startPage && !willRestoreSession && !skipStartPage) { View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/4e1... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/compare/4e1... You're receiving this email because of your account on gitlab.torproject.org.