Pier Angelo Vendrame pushed to branch tor-browser-140.0esr-15.0-1 at The Tor
Project / Applications / Tor Browser
Commits:
2b944730 by Neel Chauhan at 2025-07-16T16:52:09+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
=====================================
@@ -1882,6 +1882,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/2b94473093e485aa73c4ac42ef701d30a03b0f54
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/2b94473093e485aa73c4ac42ef701d30a03b0f54
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]