Commit 3f502b9f authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! MB 112: Updater customization for Mullvad Browser

MB 411: Drop mullvadbrowser.post_update.url.

Also, no longer require an override page to be set to open
about:mullvad-browser after an update.
parent 85d8dba6
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -1010,18 +1010,19 @@ nsBrowserContentHandler.prototype = {
              "%OLD_BASE_BROWSER_VERSION%",
              old_forkVersion
            );
            if (overridePage && AppConstants.BASE_BROWSER_UPDATE) {
            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.setCharPref("mullvadbrowser.post_update.url", overridePage);
              prefb.setBoolPref(
                "mullvadbrowser.post_update.shouldNotify",
                true
              );
              // If the user's homepage is about:tor, we will inform them
              // about the update on that page; otherwise, we arrange to
              // open about:tor in a secondary tab.
              // 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"
                  ? ""