зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1373492 - Enable the layout view by default. r=pbro
MozReview-Commit-ID: 3E81zeEUmfm --HG-- extra : rebase_source : feea0eca776c3cfeaa8699b4bfc6c9d2e7799969
This commit is contained in:
Родитель
9867c992a2
Коммит
aacce3e3bb
|
@ -322,11 +322,6 @@ OptionsPanel.prototype = {
|
|||
label: "Enable new debugger frontend",
|
||||
id: "devtools-new-debugger",
|
||||
parentId: "debugger-options"
|
||||
}, {
|
||||
pref: "devtools.layoutview.enabled",
|
||||
label: "Enable layout panel",
|
||||
id: "devtools-layout-panel",
|
||||
parentId: "inspector-options"
|
||||
}];
|
||||
|
||||
let createPreferenceOption = ({pref, label, id}) => {
|
||||
|
|
|
@ -11,10 +11,8 @@ Services.scriptloader.loadSubScript(
|
|||
"chrome://mochitests/content/browser/devtools/client/inspector/test/head.js",
|
||||
this);
|
||||
|
||||
Services.prefs.setBoolPref("devtools.layoutview.enabled", true);
|
||||
Services.prefs.setIntPref("devtools.toolbox.footer.height", 350);
|
||||
registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref("devtools.layoutview.enabled");
|
||||
Services.prefs.clearUserPref("devtools.toolbox.footer.height");
|
||||
});
|
||||
|
||||
|
|
|
@ -16,11 +16,9 @@ Services.scriptloader.loadSubScript(
|
|||
"chrome://mochitests/content/browser/devtools/client/framework/test/shared-redux-head.js",
|
||||
this);
|
||||
|
||||
Services.prefs.setBoolPref("devtools.layoutview.enabled", true);
|
||||
Services.prefs.setBoolPref("devtools.promote.layoutview.showPromoteBar", false);
|
||||
Services.prefs.setIntPref("devtools.toolbox.footer.height", 350);
|
||||
registerCleanupFunction(() => {
|
||||
Services.prefs.clearUserPref("devtools.layoutview.enabled");
|
||||
Services.prefs.clearUserPref("devtools.promote.layoutview.showPromoteBar");
|
||||
Services.prefs.clearUserPref("devtools.toolbox.footer.height");
|
||||
});
|
||||
|
|
|
@ -620,14 +620,12 @@ Inspector.prototype = {
|
|||
INSPECTOR_L10N.getStr("inspector.sidebar.computedViewTitle"),
|
||||
defaultTab == "computedview");
|
||||
|
||||
if (Services.prefs.getBoolPref("devtools.layoutview.enabled")) {
|
||||
// Grid and layout panels aren't lazy-loaded as their module end up
|
||||
// calling inspector.addSidebarTab
|
||||
this.gridInspector = new GridInspector(this, this.panelWin);
|
||||
// Grid and layout panels aren't lazy-loaded as their module end up
|
||||
// calling inspector.addSidebarTab
|
||||
this.gridInspector = new GridInspector(this, this.panelWin);
|
||||
|
||||
const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout");
|
||||
this.layoutview = new LayoutView(this, this.panelWin);
|
||||
}
|
||||
const LayoutView = this.browserRequire("devtools/client/inspector/layout/layout");
|
||||
this.layoutview = new LayoutView(this, this.panelWin);
|
||||
|
||||
if (this.target.form.animationsActor) {
|
||||
this.sidebar.addFrameTab(
|
||||
|
|
|
@ -114,7 +114,7 @@ function* openEyedropper(view, swatch) {
|
|||
swatch.click();
|
||||
yield onColorPickerReady;
|
||||
|
||||
let dropperButton = tooltip.doc.querySelector("#eyedropper-button");
|
||||
let dropperButton = tooltip.container.querySelector("#eyedropper-button");
|
||||
|
||||
info("Click on the eyedropper icon");
|
||||
let onOpened = tooltip.once("eyedropper-opened");
|
||||
|
|
|
@ -31,7 +31,7 @@ add_task(function* () {
|
|||
swatchEl.click();
|
||||
yield onColorPickerReady;
|
||||
|
||||
button = cPicker.tooltip.doc.querySelector("#eyedropper-button");
|
||||
button = cPicker.tooltip.container.querySelector("#eyedropper-button");
|
||||
ok(isDisabled(button), "The button is disabled in the color picker");
|
||||
|
||||
info("Navigate to a HTML document");
|
||||
|
@ -55,7 +55,7 @@ add_task(function* () {
|
|||
swatchEl.click();
|
||||
yield onColorPickerReady;
|
||||
|
||||
button = cPicker.tooltip.doc.querySelector("#eyedropper-button");
|
||||
button = cPicker.tooltip.container.querySelector("#eyedropper-button");
|
||||
ok(!isDisabled(button), "The button is enabled in the color picker");
|
||||
});
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
# LOCALIZATION NOTE This file contains the Layout Inspector strings.
|
||||
# The Layout Inspector is a panel accessible in the Inspector sidebar.
|
||||
# The Layout Inspector may need to be enabled in about:config by setting
|
||||
# devtools.layoutview.enabled to true.
|
||||
|
||||
# LOCALIZATION NOTE (layout.cannotShowGridOutline, layout.cannotSHowGridOutline.title):
|
||||
# In the case where the grid outline cannot be effectively displayed.
|
||||
|
|
|
@ -68,9 +68,6 @@ pref("devtools.inspector.colorWidget.enabled", false);
|
|||
// Enable the Font Inspector
|
||||
pref("devtools.fontinspector.enabled", true);
|
||||
|
||||
// Enable the Layout View
|
||||
pref("devtools.layoutview.enabled", false);
|
||||
|
||||
// Counter to promote the inspector layout view.
|
||||
// @remove after release 56 (See Bug 1355747)
|
||||
pref("devtools.promote.layoutview", 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче