Bug 1534837 - Invalidate the debugger pref schema. r=jlast
☠☠ backed out by e4c0a53fd80d ☠ ☠
authorLogan Smyth <loganfsmyth@gmail.com>
Wed, 13 Mar 2019 00:19:42 +0000
changeset 521625 bb3918322c3c
parent 521624 fae9b5118064
child 521626 19f3dfdf76da
push id10867
push userdvarga@mozilla.com
push dateThu, 14 Mar 2019 15:20:45 +0000
treeherdermozilla-beta@abad13547875 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1534837
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1534837 - Invalidate the debugger pref schema. r=jlast Differential Revision: https://phabricator.services.mozilla.com/D23243
devtools/client/debugger/new/src/utils/prefs.js
--- a/devtools/client/debugger/new/src/utils/prefs.js
+++ b/devtools/client/debugger/new/src/utils/prefs.js
@@ -4,17 +4,17 @@
 
 // @flow
 
 import { PrefsHelper } from "devtools-modules";
 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()) {
   pref("devtools.debugger.logging", false);
   pref("devtools.debugger.alphabetize-outline", false);
   pref("devtools.debugger.auto-pretty-print", false);
   pref("devtools.source-map.client-service.enabled", true);
   pref("devtools.chrome.enabled", false);
@@ -127,15 +127,15 @@ export const features = new PrefsHelper(
 
 export const asyncStore = asyncStoreHelper("debugger", {
   pendingBreakpoints: ["pending-breakpoints", {}],
   tabs: ["tabs", []],
   xhrBreakpoints: ["xhr-breakpoints", []],
   eventListenerBreakpoints: ["event-listener-breakpoints", []]
 });
 
-if (!isTesting && prefs.debuggerPrefsSchemaVersion !== prefsSchemaVersion) {
+if (!isTesting() && prefs.debuggerPrefsSchemaVersion !== prefsSchemaVersion) {
   // clear pending Breakpoints
   asyncStore.pendingBreakpoints = {};
   asyncStore.tabs = [];
   asyncStore.xhrBreakpoints = [];
   prefs.debuggerPrefsSchemaVersion = prefsSchemaVersion;
 }