morgan pushed to branch mullvad-browser-153.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser Commits: b0d20211 by Pier Angelo Vendrame at 2026-08-06T16:10:41+00:00 fixup! BB 42027: Base Browser migration procedures. BB 45039: Make it easier to test ProfileDataUpgrader customization. - - - - - 1 changed file: - browser/components/ProfileDataUpgrader.sys.mjs Changes: ===================================== browser/components/ProfileDataUpgrader.sys.mjs ===================================== @@ -1026,7 +1026,15 @@ export let ProfileDataUpgrader = { Services.prefs.setIntPref("browser.migration.version", newVersion); }, - upgradeBB(isNewProfile) { + /** + * Run the profile data migration for Base Browser if needed. + * + * @param {boolean} isNewProfile When true, just set the migration version + * without actually changing anything. + * @param {number} [currentVersion] The version to migrating from. To be used + * only by tests. + */ + upgradeBB(isNewProfile, currentVersion) { // Version 1: 13.0a3. Reset layout.css.prefers-color-scheme.content-override // for tor-browser#41739. // Version 2: 14.0a5: Reset the privacy tracking headers preferences since @@ -1056,7 +1064,10 @@ export let ProfileDataUpgrader = { console.error("upgradeBB: isNewProfile is undefined."); } - const currentVersion = Services.prefs.getIntPref(MIGRATION_PREF, 0); + if (currentVersion === undefined) { + currentVersion = Services.prefs.getIntPref(MIGRATION_PREF, 0); + } + if (currentVersion < 1) { Services.prefs.clearUserPref( "layout.css.prefers-color-scheme.content-override" View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/b0d2... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/b0d2... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help