diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 6124554f..03139825 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2590,11 +2590,7 @@ TreeStyleTabBrowser.prototype = { { if ( !aEvent.originalTarget || - ( - aEvent.originalTarget.ownerDocument != document && - aEvent.originalTarget != window && - aEvent.originalTarget != this.mTabBrowser.contentWindow - ) + !(aEvent.originalTarget instanceof Ci.nsIDOMWindow) ) return;