Loading browser/app/profile/000-mullvad-browser.js +2 −0 Original line number Diff line number Diff line // Preferences specific to Mullvad Browser pref("browser.startup.homepage", "about:mullvad-browser"); // General browser support url. tor-browser#43864 and mullvad-browser#244. pref("browser.base-browser-support-url", "https://mullvad.net/en/help/"); Loading browser/base/content/browser-places.js +1 −0 Original line number Diff line number Diff line Loading @@ -1434,6 +1434,7 @@ var BookmarkingUI = { let newTabURLs = [ newTabURL, "about:home", "about:mullvad-browser", "chrome://browser/content/blanktab.html", ]; if (PrivateBrowsingUtils.isWindowPrivate(window)) { Loading browser/base/content/browser.js +2 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,7 @@ async function gLazyFindCommand(cmd, ...args) { } var gPageIcons = { "about:mullvad-browser": "chrome://branding/content/icon32.png", "about:home": "chrome://branding/content/icon32.png", "about:newtab": "chrome://branding/content/icon32.png", "about:welcome": "chrome://branding/content/icon32.png", Loading @@ -715,6 +716,7 @@ var gPageIcons = { }; var gInitialPages = [ "about:mullvad-browser", "about:blank", "about:home", "about:firefoxview", Loading browser/base/content/utilityOverlay.js +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ function isBlankPageURL(aURL) { return ( aURL == "about:blank" || aURL == "about:home" || aURL == "about:mullvad-browser" || aURL == BROWSER_NEW_TAB_URL || aURL == "chrome://browser/content/blanktab.html" ); Loading browser/components/BrowserContentHandler.sys.mjs +24 −0 Original line number Diff line number Diff line Loading @@ -775,6 +775,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 Loading Loading @@ -970,6 +971,19 @@ nsBrowserContentHandler.prototype = { "%OLD_BASE_BROWSER_VERSION%", old_forkVersion ); if (AppConstants.BASE_BROWSER_UPDATE) { // NOTE: We ignore any overridePage value, which can come from the // openURL attribute within the updates.xml file. // Mullvad Browser, copied from tor-browser: Instead of opening // the post-update "override page" directly, we include a link in // about:mullvad-browser. prefb.setBoolPref( "mullvadbrowser.post_update.shouldNotify", true ); openAboutMullvadBrowser = true; overridePage = "about:mullvad-browser"; } break; } case OVERRIDE_NEW_BUILD_ID: { Loading Loading @@ -1069,6 +1083,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) { Loading Loading
browser/app/profile/000-mullvad-browser.js +2 −0 Original line number Diff line number Diff line // Preferences specific to Mullvad Browser pref("browser.startup.homepage", "about:mullvad-browser"); // General browser support url. tor-browser#43864 and mullvad-browser#244. pref("browser.base-browser-support-url", "https://mullvad.net/en/help/"); Loading
browser/base/content/browser-places.js +1 −0 Original line number Diff line number Diff line Loading @@ -1434,6 +1434,7 @@ var BookmarkingUI = { let newTabURLs = [ newTabURL, "about:home", "about:mullvad-browser", "chrome://browser/content/blanktab.html", ]; if (PrivateBrowsingUtils.isWindowPrivate(window)) { Loading
browser/base/content/browser.js +2 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,7 @@ async function gLazyFindCommand(cmd, ...args) { } var gPageIcons = { "about:mullvad-browser": "chrome://branding/content/icon32.png", "about:home": "chrome://branding/content/icon32.png", "about:newtab": "chrome://branding/content/icon32.png", "about:welcome": "chrome://branding/content/icon32.png", Loading @@ -715,6 +716,7 @@ var gPageIcons = { }; var gInitialPages = [ "about:mullvad-browser", "about:blank", "about:home", "about:firefoxview", Loading
browser/base/content/utilityOverlay.js +1 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ function isBlankPageURL(aURL) { return ( aURL == "about:blank" || aURL == "about:home" || aURL == "about:mullvad-browser" || aURL == BROWSER_NEW_TAB_URL || aURL == "chrome://browser/content/blanktab.html" ); Loading
browser/components/BrowserContentHandler.sys.mjs +24 −0 Original line number Diff line number Diff line Loading @@ -775,6 +775,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 Loading Loading @@ -970,6 +971,19 @@ nsBrowserContentHandler.prototype = { "%OLD_BASE_BROWSER_VERSION%", old_forkVersion ); if (AppConstants.BASE_BROWSER_UPDATE) { // NOTE: We ignore any overridePage value, which can come from the // openURL attribute within the updates.xml file. // Mullvad Browser, copied from tor-browser: Instead of opening // the post-update "override page" directly, we include a link in // about:mullvad-browser. prefb.setBoolPref( "mullvadbrowser.post_update.shouldNotify", true ); openAboutMullvadBrowser = true; overridePage = "about:mullvad-browser"; } break; } case OVERRIDE_NEW_BUILD_ID: { Loading Loading @@ -1069,6 +1083,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) { Loading