Bug 1534837 - Invalidate the debugger pref schema. r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D23243

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Logan Smyth 2019-03-13 00:19:42 +00:00
parent 999d434e4a
commit 6fcaa7e8ee

View File

@ -9,7 +9,7 @@ import { isDevelopment, isTesting } from "devtools-environment";
import Services from "devtools-services";
import { asyncStoreHelper } from "./asyncStoreHelper";
const prefsSchemaVersion = "1.0.8";
const prefsSchemaVersion = "1.0.9";
const pref = Services.pref;
if (isDevelopment()) {
@ -132,7 +132,7 @@ export const asyncStore = asyncStoreHelper("debugger", {
eventListenerBreakpoints: ["event-listener-breakpoints", []]
});
if (!isTesting && prefs.debuggerPrefsSchemaVersion !== prefsSchemaVersion) {
if (!isTesting() && prefs.debuggerPrefsSchemaVersion !== prefsSchemaVersion) {
// clear pending Breakpoints
asyncStore.pendingBreakpoints = {};
asyncStore.tabs = [];