Bug 913947 - this.elementStyle is undefined. r=mratcliffe
authorPaul Rouget <paul@mozilla.com>
Sun, 08 Sep 2013 12:23:00 +0200
changeset 146659 dc1cc7a33ec99248a914249d39aeb6414ee39462
parent 146658 3a1473495b2f3d4edf41d41a07f82b83c919f36d
child 146660 22374252348314a0c9d8db01312323e322c026bf
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmratcliffe
bugs913947
milestone26.0a1
Bug 913947 - this.elementStyle is undefined. r=mratcliffe
browser/devtools/styleinspector/rule-view.js
--- a/browser/devtools/styleinspector/rule-view.js
+++ b/browser/devtools/styleinspector/rule-view.js
@@ -1036,17 +1036,19 @@ CssRuleView.prototype = {
 
     this.element.removeEventListener("copy", this._boundCopy);
     delete this._boundCopy;
 
     if (this.element.parentNode) {
       this.element.parentNode.removeChild(this.element);
     }
 
-    this.elementStyle.destroy();
+    if (this.elementStyle) {
+      this.elementStyle.destroy();
+    }
 
     this.popup.destroy();
   },
 
   /**
    * Update the highlighted element.
    *
    * @param {nsIDOMElement} aElement