diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
index d3d36113dc89..453b56b5811a 100644
--- a/browser/app/profile/firefox.js
+++ b/browser/app/profile/firefox.js
@@ -395,11 +395,9 @@ pref("browser.bookmarks.max_backups", 10);
// Scripts & Windows prefs
pref("dom.disable_open_during_load", true);
-#ifdef DEBUG
pref("javascript.options.showInConsole", true);
+#ifdef DEBUG
pref("general.warnOnAboutConfig", false);
-#else
-pref("javascript.options.showInConsole", false);
#endif
#ifdef WINCE
@@ -1031,5 +1029,8 @@ pref("services.sync.prefs.sync.spellchecker.dictionary", true);
pref("services.sync.prefs.sync.xpinstall.whitelist.required", true);
#endif
+// Disable the Error Console
+pref("devtools.errorconsole.enabled", false);
+
// disable the Inspector
pref("devtools.inspector.enabled", false);
diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc
index 5bdcb4b575f1..4c961c0a247a 100644
--- a/browser/base/content/browser-menubar.inc
+++ b/browser/base/content/browser-menubar.inc
@@ -541,6 +541,7 @@
key="key_inspect"
command="Tools:Inspect"/>
#endif
-
+
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index 4ba4477c7935..98c22782c01c 100644
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1523,6 +1523,13 @@ function delayedStartup(isLoadingBlank, mustLoadSidebar) {
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;
+ }
+
Services.obs.notifyObservers(window, "browser-delayed-startup-finished", "");
}