Pier Angelo Vendrame pushed to branch base-browser-140.0esr-15.0-1 at The Tor
Project / Applications / Tor Browser
Commits:
d73923cb by Neel Chauhan at 2025-07-16T18:27:21+02:00
fixup! BB 42027: Base Browser migration procedures.
BB 43629: Check for this._isNewProfile in _migrateUIBB()
- - - - -
1 changed file:
- browser/components/BrowserGlue.sys.mjs
Changes:
=====================================
browser/components/BrowserGlue.sys.mjs
=====================================
@@ -1840,6 +1840,15 @@ BrowserGlue.prototype = {
// Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
const MIGRATION_VERSION = 3;
const MIGRATION_PREF = "basebrowser.migration.version";
+ if (this._isNewProfile) {
+ // Do not migrate fresh profiles
+ Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
+ return;
+ } else if (this._isNewProfile === undefined) {
+ // If this happens, check if upstream updated their function and do not
+ // set this member anymore!
+ console.error("_migrateUIBB: this._isNewProfile is undefined.");
+ }
// We do not care whether this is a new or old profile, since in version 1
// we just quickly clear a user preference, which should not do anything to
// new profiles.
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d73923cba5ee24f8b365b31df6168de69ec8ad76
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/d73923cba5ee24f8b365b31df6168de69ec8ad76
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]