Bug 774808 - GCLI sometimes stops working; r=jwalker
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Thu, 23 Aug 2012 14:48:23 +0100
changeset 103454 bbd267f16fc721c3e5f316659512d75711068c13
parent 103453 e5588de9374ca703808fa1186621892c8f6a1032
child 103455 11a0db7262a04c8481f672122d1bded2636c5451
push id13991
push userryanvm@gmail.com
push dateSun, 26 Aug 2012 02:29:03 +0000
treeherdermozilla-inbound@c4f20a024113 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker
bugs774808
milestone17.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 774808 - GCLI sometimes stops working; r=jwalker
browser/devtools/shared/DeveloperToolbar.jsm
--- a/browser/devtools/shared/DeveloperToolbar.jsm
+++ b/browser/devtools/shared/DeveloperToolbar.jsm
@@ -694,17 +694,20 @@ OutputPanel.prototype.update = function 
 };
 
 /**
  * Detach listeners from the currently displayed Output.
  */
 OutputPanel.prototype.remove = function OP_remove()
 {
   this.canHide = true;
-  this._panel.hidePopup();
+
+  if (this._panel) {
+    this._panel.hidePopup();
+  }
 
   if (this.displayedOutput) {
     this.displayedOutput.onChange.remove(this.update, this);
     this.displayedOutput.onClose.remove(this.remove, this);
     delete this.displayedOutput;
   }
 };