Pier Angelo Vendrame pushed to branch mullvad-browser-140.0esr-15.0-1 at The 
Tor Project / Applications / Mullvad Browser


Commits:
52d6b81b by Neel Chauhan at 2025-07-16T18:28:51+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
=====================================
@@ -1844,6 +1844,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/mullvad-browser/-/commit/52d6b81b74766f98af434689b2d4ad019fe36e89

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/52d6b81b74766f98af434689b2d4ad019fe36e89
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to