Commit 4ef1a8dd authored by henry's avatar henry Committed by morgan
Browse files

fixup! TB 7494: Create local home page for TBB.

TB 43567: Use the same update URL in about:tor as the about dialog.
parent a6eda23a
Loading
Loading
Loading
Loading
+10 −3
Changes for browser/components/abouttor/AboutTorMessage.sys.mjs: 10 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -26,13 +26,20 @@ export const AboutTorMessage = {
    const shouldNotifyPref = "torbrowser.post_update.shouldNotify";
    if (Services.prefs.getBoolPref(shouldNotifyPref, false)) {
      Services.prefs.clearUserPref(shouldNotifyPref);
      // Try use the same URL as the about dialog. See tor-browser#43567.
      let updateURL = Services.urlFormatter.formatURLPref(
        "app.releaseNotesURL.aboutDialog"
      );
      if (updateURL === "about:blank") {
        updateURL = Services.urlFormatter.formatURLPref(
          "startup.homepage_override_url"
        );
      }
      return {
        updateVersion: Services.prefs.getCharPref(
          "browser.startup.homepage_override.torbrowser.version"
        ),
        updateURL:
          Services.prefs.getCharPref("torbrowser.post_update.url", "") ||
          Services.urlFormatter.formatURLPref("startup.homepage_override_url"),
        updateURL,
      };
    }
    const number = this._count;