Bug 915096 - Remove needless prefs for `devtools.layoutview.*`. r=paul.rouget
authorTetsuharu OHZEKI <saneyuki.s.snyk@gmail.com>
Fri, 13 Sep 2013 09:25:48 -0400
changeset 160003 933b9f822c2b30e736a1736584e818cd8dd64761
parent 160002 467edd1d0e1e6bfb6667a6b1b7ef348973cfa273
child 160004 a6c8ba5cc4747024c76ba4137853508eb334b858
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs915096
milestone26.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 915096 - Remove needless prefs for `devtools.layoutview.*`. r=paul.rouget
browser/app/profile/firefox.js
browser/devtools/layoutview/test/browser_layoutview.js
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -1084,20 +1084,16 @@ pref("devtools.toolbox.sideEnabled", tru
 
 // Enable the Inspector
 pref("devtools.inspector.enabled", true);
 pref("devtools.inspector.activeSidebar", "ruleview");
 pref("devtools.inspector.markupPreview", false);
 pref("devtools.inspector.remote", false);
 pref("devtools.inspector.show_pseudo_elements", true);
 
-// Enable the Layout View
-pref("devtools.layoutview.enabled", true);
-pref("devtools.layoutview.open", false);
-
 // Enable the Responsive UI tool
 pref("devtools.responsiveUI.enabled", true);
 pref("devtools.responsiveUI.no-reload-notification", false);
 
 // Enable the Debugger
 pref("devtools.debugger.enabled", true);
 pref("devtools.debugger.chrome-enabled", true);
 pref("devtools.debugger.chrome-debugging-host", "localhost");
--- a/browser/devtools/layoutview/test/browser_layoutview.js
+++ b/browser/devtools/layoutview/test/browser_layoutview.js
@@ -2,17 +2,16 @@
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 let {devtools} = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
 let TargetFactory = devtools.TargetFactory;
 
 function test() {
   waitForExplicitFinish();
 
-  Services.prefs.setBoolPref("devtools.layoutview.enabled", true);
   Services.prefs.setBoolPref("devtools.inspector.sidebarOpen", true);
 
   let doc;
   let node;
   let view;
   let inspector;
 
   // Expected values:
@@ -118,14 +117,13 @@ function test() {
 
     executeSoon(function() {
       gDevTools.once("toolbox-destroyed", finishUp);
       inspector._toolbox.destroy();
     });
   }
 
   function finishUp() {
-    Services.prefs.clearUserPref("devtools.layoutview.enabled");
     Services.prefs.clearUserPref("devtools.inspector.sidebarOpen");
     gBrowser.removeCurrentTab();
     finish();
   }
 }