Bug 1529379 - Remove devtools.inspector.changes.enabled pref. r=gl

This commit is contained in:
Rainier G 2019-02-22 00:05:34 -05:00
Родитель 15186f6a95
Коммит a1ce4f4232
3 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -20,13 +20,10 @@ Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/devtools/client/shared/test/shared-redux-head.js",
this);
// Ensure the Changes panel is enabled before running the tests.
Services.prefs.setBoolPref("devtools.inspector.changes.enabled", true);
// Ensure the three-pane mode is enabled before running the tests.
Services.prefs.setBoolPref("devtools.inspector.three-pane-enabled", true);
registerCleanupFunction(() => {
Services.prefs.clearUserPref("devtools.inspector.changes.enabled");
Services.prefs.clearUserPref("devtools.inspector.three-pane-enabled");
});

Просмотреть файл

@ -55,7 +55,6 @@ const THREE_PANE_ENABLED_PREF = "devtools.inspector.three-pane-enabled";
const THREE_PANE_ENABLED_SCALAR = "devtools.inspector.three_pane_enabled";
const THREE_PANE_CHROME_ENABLED_PREF = "devtools.inspector.chrome.three-pane-enabled";
const TELEMETRY_EYEDROPPER_OPENED = "devtools.toolbar.eyedropper.opened";
const TRACK_CHANGES_PREF = "devtools.inspector.changes.enabled";
/**
* Represents an open instance of the Inspector for a tab.
@ -245,8 +244,7 @@ Inspector.prototype = {
// The changes actor was introduced in Fx65, we are checking this for backward
// compatibility when connecting to an older server. Can be removed once Fx65 hit the
// release channel.
return this._target.hasActor("changes") &&
Services.prefs.getBoolPref(TRACK_CHANGES_PREF);
return this._target.hasActor("changes");
},
/**

Просмотреть файл

@ -52,8 +52,6 @@ pref("devtools.inspector.showAllAnonymousContent", false);
pref("devtools.inspector.showUserAgentShadowRoots", false);
// Enable the font highlight-on-hover feature
pref("devtools.inspector.fonthighlighter.enabled", true);
// Enable tracking of style changes and the Changes panel in the Inspector
pref("devtools.inspector.changes.enabled", true);
// Enable the new Rules View
pref("devtools.inspector.new-rulesview.enabled", false);