mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
999d434e4a
commit
6fcaa7e8ee
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user