Bug 1263186 - Remove Devtools Error Console References from Seamonkey. r=Ratty a=Ratty bustage fix
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Fri, 08 Apr 2016 23:59:47 +0800
changeset 25476 abc74bba07dcb63b5b051724b07712cad2556b15
parent 25475 3dc29f637ced75148a51e7775bb3ad16bbdd687f
child 25477 8fbd2d901f43ee531ae775548a064067f173cdaf
push id300
push userclokep@gmail.com
push dateMon, 01 Aug 2016 16:37:12 +0000
reviewersRatty, Ratty
bugs1263186
Bug 1263186 - Remove Devtools Error Console References from Seamonkey. r=Ratty a=Ratty bustage fix
suite/browser/webDeveloperOverlay.js
suite/browser/webDeveloperOverlay.xul
--- a/suite/browser/webDeveloperOverlay.js
+++ b/suite/browser/webDeveloperOverlay.js
@@ -197,18 +197,14 @@ var gWebDeveloper = {
     var chromeEnabled = Services.prefs.getBoolPref("devtools.chrome.enabled");
     var devtoolsRemoteEnabled = Services.prefs.getBoolPref("devtools.debugger.remote-enabled");
     var remoteEnabled = chromeEnabled && devtoolsRemoteEnabled;
     toggleCmd("Tools:BrowserToolbox", remoteEnabled);
     // Currently "gMultiProcessBrowser" is always falsey.
     //toggleCmd("Tools:BrowserContentToolbox", remoteEnabled && win.gMultiProcessBrowser);
     toggleCmd("Tools:BrowserContentToolbox", false);
 
-    // Enable Error Console?
-    var consoleEnabled = Services.prefs.getBoolPref("devtools.errorconsole.enabled");
-    toggleCmd("Tools:ErrorConsole", consoleEnabled);
-
     // Enable DevTools connection screen, if the preference allows this.
     toggleCmd("Tools:DevToolsConnect", devtoolsRemoteEnabled);
   },
 }
 
 window.addEventListener("load", gWebDeveloper, false);
--- a/suite/browser/webDeveloperOverlay.xul
+++ b/suite/browser/webDeveloperOverlay.xul
@@ -82,17 +82,16 @@
     <command id="Tools:DevToolbarFocus" oncommand="DeveloperToolbar.focusToggle();" disabled="true"/>
     <command id="Tools:WebIDE" oncommand="gDevToolsBrowser.openWebIDE();" disabled="true" hidden="true"/>
     <command id="Tools:BrowserToolbox" oncommand="BrowserToolboxProcess.init();" disabled="true" hidden="true"/>
     <command id="Tools:BrowserContentToolbox" oncommand="gDevToolsBrowser.openContentProcessToolbox();" disabled="true" hidden="true"/>
     <command id="Tools:BrowserConsole" oncommand="HUDService.openBrowserConsoleOrFocus();"/>
     <command id="Tools:Scratchpad" oncommand="Scratchpad.openScratchpad();"/>
     <command id="Tools:ResponsiveUI" oncommand="ResponsiveUI.toggle();"/>
     <command id="Tools:Eyedropper" oncommand="openEyedropper();"/>
-    <command id="Tools:ErrorConsole" oncommand="toJavaScriptConsole()" disabled="true" hidden="true"/>
     <command id="Tools:DevToolsConnect" oncommand="gDevToolsBrowser.openConnectScreen(gBrowser)" disabled="true" hidden="true"/>
   </commandset>
 
   <keyset id="mainKeyset">
     <key id="key_devToolboxMenuItemF12" keycode="&devToolsCmd.keycode;" keytext="&devToolsCmd.keytext;"
          command="Tools:DevToolbox"/>
     <key id="key_browserConsole" key="&browserConsoleCmd.commandkey;" modifiers="accel,shift"
          command="Tools:BrowserConsole"/>
@@ -136,18 +135,16 @@
     <broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI"
                  command="Tools:ResponsiveUI"
                  key="key_responsiveUI"/>
     <broadcaster id="devtoolsMenuBroadcaster_Eyedropper"
                  command="Tools:Eyedropper"/>
     <broadcaster id="devtoolsMenuBroadcaster_PageSource"
                  key="key_viewSource"
                  command="View:PageSource"/>
-    <broadcaster id="devtoolsMenuBroadcaster_ErrorConsole"
-                 command="Tools:ErrorConsole"/>
     <broadcaster id="devtoolsMenuBroadcaster_GetMoreTools"
                  oncommand="openUILinkIn('https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/', 'tab');"/>
     <broadcaster id="devtoolsMenuBroadcaster_connect"
                  command="Tools:DevToolsConnect"/>
   </broadcasterset>
 
   <window id="main-window">
     <toolbar id="developer-toolbar" xpfe="false" hidden="true"