зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267293 - Turn the DOM panel off by default;r=bgrins
MozReview-Commit-ID: DOYF2vTUEqq
This commit is contained in:
Родитель
d7956ba976
Коммит
22e4925d1f
|
@ -26,7 +26,7 @@ function test() {
|
|||
|
||||
// Check only valid tabs are shown
|
||||
let tabs = addonDebugger.frame.contentDocument.getElementById("toolbox-tabs").children;
|
||||
let expectedTabs = ["webconsole", "jsdebugger", "scratchpad", "dom"];
|
||||
let expectedTabs = ["webconsole", "jsdebugger", "scratchpad"];
|
||||
|
||||
is(tabs.length, expectedTabs.length, "displaying only " + expectedTabs.length + " tabs in addon debugger");
|
||||
Array.forEach(tabs, (tab, i) => {
|
||||
|
|
|
@ -17,11 +17,15 @@ Services.scriptloader.loadSubScript(
|
|||
const constants = require("devtools/client/dom/content/constants");
|
||||
|
||||
// Uncomment this pref to dump all devtools emitted events to the console.
|
||||
// Services.prefs.setBoolPref("devtools.dump.emit", true);
|
||||
// Services.prefs.setBoolPref("devtools.dom.enabled", true);
|
||||
|
||||
// Enable the DOM panel
|
||||
Services.prefs.setBoolPref("devtools.dom.enabled", true);
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
info("finish() was called, cleaning up...");
|
||||
Services.prefs.clearUserPref("devtools.dump.emit");
|
||||
Services.prefs.clearUserPref("devtools.dom.enabled");
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -213,6 +213,9 @@ pref("devtools.webaudioeditor.enabled", false);
|
|||
// Enable Scratchpad
|
||||
pref("devtools.scratchpad.enabled", false);
|
||||
|
||||
// Make sure the DOM panel is hidden by default
|
||||
pref("devtools.dom.enabled", false);
|
||||
|
||||
// Web Audio Editor Inspector Width should be a preference
|
||||
pref("devtools.webaudioeditor.inspectorWidth", 300);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче