Bug 593538 - Hide the Error Console behind a preference followup for key enablement, r=dao, a=blocking2.0
authorRob Campbell <rcampbell@mozilla.com>
Fri, 10 Sep 2010 12:07:55 -0300
changeset 52379 5c0a3f26e0ef513fbf37527340ec16f425c55f55
parent 52378 93785fd6f873face1b377fe78c2706f0f68e6060
child 52380 30577e9992363269cd6bee66c1f9103d3647b655
push id15617
push userrcampbell@mozilla.com
push dateFri, 10 Sep 2010 15:08:17 +0000
treeherdermozilla-central@5c0a3f26e0ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, blocking2
bugs593538
milestone2.0b6pre
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 593538 - Hide the Error Console behind a preference followup for key enablement, r=dao, a=blocking2.0
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1523,17 +1523,17 @@ function delayedStartup(isLoadingBlank, 
     if (appMenuInspect)
       appMenuInspect.setAttribute("hidden", false);
   }
 
   // Enable Error Console?
   let consoleEnabled = gPrefService.getBoolPref("devtools.errorconsole.enabled");
   if (consoleEnabled) {
     document.getElementById("javascriptConsole").hidden = false;
-    document.getElementById("key_errorConsole").disabled = false;
+    document.getElementById("key_errorConsole").removeAttribute("disabled");
   }
 
   Services.obs.notifyObservers(window, "browser-delayed-startup-finished", "");
 }
 
 function BrowserShutdown()
 {
   if (Win7Features)