Skip to content
Snippets Groups Projects
Commit eedac949 authored by henry's avatar henry Committed by Beatriz Rizental
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 0d3f1d7b
Branches
Tags
1 merge request!1507Rebase Tor Browser onto 136.0a1
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment