Bug 1470380 - Enable the first simple version of the flexbox inspector (M1) in nightly only. r=pbro
MozReview-Commit-ID: Hp0OAAt5Q7i
--- a/devtools/client/preferences/devtools-client.js
+++ b/devtools/client/preferences/devtools-client.js
@@ -52,29 +52,34 @@ pref("devtools.inspector.three-pane-firs
// Collapse pseudo-elements by default in the rule-view
pref("devtools.inspector.show_pseudo_elements", false);
// The default size for image preview tooltips in the rule-view/computed-view/markup-view
pref("devtools.inspector.imagePreviewTooltipSize", 300);
// Enable user agent style inspection in rule-view
pref("devtools.inspector.showUserAgentStyles", false);
// Show all native anonymous content (like controls in <video> tags)
pref("devtools.inspector.showAllAnonymousContent", false);
-// Enable the Flexbox highlighter
-pref("devtools.inspector.flexboxHighlighter.enabled", false);
// Enable the CSS shapes highlighter
pref("devtools.inspector.shapesHighlighter.enabled", true);
-// Enable the Flexbox Inspector panel
-pref("devtools.flexboxinspector.enabled", false);
// Enable the new Animation Inspector
pref("devtools.new-animationinspector.enabled", true);
// Enable the Variable Fonts editor
pref("devtools.inspector.fonteditor.enabled", false);
// Enable the font highlight-on-hover feature
pref("devtools.inspector.fonthighlighter.enabled", false);
+// Enable the Flexbox Inspector in Nightly
+#if defined(NIGHTLY_BUILD)
+pref("devtools.flexboxinspector.enabled", true);
+pref("devtools.inspector.flexboxHighlighter.enabled", true);
+#else
+pref("devtools.flexboxinspector.enabled", false);
+pref("devtools.inspector.flexboxHighlighter.enabled", false);
+#endif
+
// Grid highlighter preferences
pref("devtools.gridinspector.gridOutlineMaxColumns", 50);
pref("devtools.gridinspector.gridOutlineMaxRows", 50);
pref("devtools.gridinspector.showGridAreas", false);
pref("devtools.gridinspector.showGridLineNumbers", false);
pref("devtools.gridinspector.showInfiniteLines", false);
// Whether or not the box model panel is opened in the layout view