Pier Angelo Vendrame pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits: ed873553 by Henry Wilkes at 2024-09-12T13:56:21+00:00 fixup! Bug 41435: Add a Tor Browser migration function
Bug 43118: Clear user preference for CFR since we have hidden the settings.
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
===================================== browser/components/BrowserGlue.sys.mjs ===================================== @@ -4862,7 +4862,9 @@ BrowserGlue.prototype = { // (tor-browser#42283). // Version 4: Tor Browser 14.0a4 (2024-09-02): Remove Twitter, Yahoo and // YouTube search engines (tor-browser#41835). - const TBB_MIGRATION_VERSION = 4; + // Version 5: Tor Browser 14.0a5: Clear user preference for CFR settings + // since we hid the UI (tor-browser#43118). + const TBB_MIGRATION_VERSION = 5; const MIGRATION_PREF = "torbrowser.migration.version";
// If we decide to force updating users to pass through any version @@ -4935,6 +4937,14 @@ BrowserGlue.prototype = { "youtube@search.mozilla.org", ]); } + if (currentVersion < 5) { + for (const pref of [ + "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", + "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", + ]) { + Services.prefs.clearUserPref(pref); + } + }
Services.prefs.setIntPref(MIGRATION_PREF, TBB_MIGRATION_VERSION); },
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ed873553...
tbb-commits@lists.torproject.org