diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index c27119a9..e0654946 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -971,7 +971,8 @@ catch(e) { return; case 'popupshowing': - if (!this.evaluateXPath( + if (aEvent.originalTarget.boxObject && + !this.evaluateXPath( 'local-name() = "tooltip" or local-name() ="panel" or '+ 'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]', aEvent.originalTarget, @@ -986,7 +987,8 @@ catch(e) { return; case 'popuphiding': - if (!this.evaluateXPath( + if (aEvent.originalTarget.boxObject && + !this.evaluateXPath( 'local-name() = "tooltip" or local-name() ="panel" or '+ 'parent::*/ancestor-or-self::*[local-name()="popup" or local-name()="menupopup"]', aEvent.originalTarget,