fix: ensure no migration when using new profiles
(cherry picked from commit c9b5de7529875e565897135b4ccd5b10965cd701)
This commit is contained in:
@@ -221,11 +221,13 @@ export const WaterfoxGlue = {
|
||||
"browser.migration.version",
|
||||
128
|
||||
);
|
||||
const waterfoxUIVersion = 1;
|
||||
|
||||
const waterfoxUIVersion = lazy.PrefUtils.get(
|
||||
"browser.migration.waterfox_version",
|
||||
0
|
||||
);
|
||||
if (!Services.prefs.prefHasUserValue("browser.migration.waterfox_version")) {
|
||||
// This is a new profile, nothing to migrate.
|
||||
Services.prefs.setIntPref("browser.migration.waterfox_version", waterfoxUIVersion);
|
||||
return;
|
||||
}
|
||||
|
||||
async function enableTheme(id) {
|
||||
const addon = await lazy.AddonManager.getAddonByID(id);
|
||||
|
||||
Reference in New Issue
Block a user