Bug 833004 - Can't start Tilt, r=paul, a=bbajaj
authorVictor Porof <vporof@mozilla.com>
Tue, 22 Jan 2013 17:57:23 +0200
changeset 127319 bd00c6ae955ec0a89b143919806bc69faba85634
parent 127318 e5b4e20f90e61e27753841630491bb00cae213dc
child 127320 70d6e59610f1b29c24fa44288982263c5fd26e0d
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul, bbajaj
bugs833004
milestone20.0a2
Bug 833004 - Can't start Tilt, r=paul, a=bbajaj
browser/devtools/tilt/TiltVisualizer.jsm
--- a/browser/devtools/tilt/TiltVisualizer.jsm
+++ b/browser/devtools/tilt/TiltVisualizer.jsm
@@ -189,17 +189,19 @@ TiltVisualizer.prototype = {
   /**
    * Unregister inspector event listeners.
    */
   unbindInspector: function TV_unbindInspector()
   {
     this._browserTab = null;
 
     if (this.inspector) {
-      this.inspector.selection.off("new-node", this.onNewNodeFromInspector);
+      if (this.inspector.selection) {
+        this.inspector.selection.off("new-node", this.onNewNodeFromInspector);
+      }
       this.inspector = null;
     }
 
     gDevTools.off("inspector-ready", this.onInspectorReady);
     gDevTools.off("toolbox-destroyed", this.onToolboxDestroyed);
 
     Services.obs.removeObserver(this.onNewNodeFromTilt,
                                 this.presenter.NOTIFICATIONS.HIGHLIGHTING);