Bug 1369801 - dt-addon: remove dump() from devtools addon bootstrap;r=ochameau draft
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 11 Jul 2017 16:22:24 +0200
changeset 607517 298cca1dea36899e688dd3a7af8c48b07736b51f
parent 607516 a443ac0b68eb40dca3bd99824dcdbe135288d07c
child 637043 fa41ff6e1f933334710cd7466695f97b12c29b0b
push id68000
push userjdescottes@mozilla.com
push dateWed, 12 Jul 2017 09:51:14 +0000
reviewersochameau
bugs1369801
milestone56.0a1
Bug 1369801 - dt-addon: remove dump() from devtools addon bootstrap;r=ochameau MozReview-Commit-ID: 52HXy0JIfOB
devtools/bootstrap.js
--- a/devtools/bootstrap.js
+++ b/devtools/bootstrap.js
@@ -156,18 +156,16 @@ function reload(event) {
   }
   let browserConsole = Services.wm.getMostRecentWindow("devtools:webconsole");
   let reopenBrowserConsole = false;
   if (browserConsole) {
     browserConsole.close();
     reopenBrowserConsole = true;
   }
 
-  dump("Reload DevTools.  (reload-toolbox:" + reloadToolbox + ")\n");
-
   // Invalidate xul cache in order to see changes made to chrome:// files
   Services.obs.notifyObservers(null, "startupcache-invalidate");
   unload("reload");
 
   let devtools = initDevTools();
 
   // Go over all top level windows to reload all devtools related things
   let windowsEnum = Services.wm.getEnumerator(null);
@@ -247,18 +245,16 @@ function startCommandLineHandler(compone
 }
 
 function shutdownCommandLineHandler(component) {
   catman.deleteCategoryEntry("command-line-handler", component.prototype.name, false);
   Cm.unregisterFactory(component.prototype.classID, getFactory(component));
 }
 
 function startup(data) {
-  dump("DevTools addon started.\n");
-
   listener = new MultiWindowKeyListener({
     keyCode: Ci.nsIDOMKeyEvent.DOM_VK_R, ctrlKey: true, altKey: true,
     callback: reload
   });
   listener.start();
 
   startCommandLineHandler(DevToolsStartup);