diff --git a/modules/browser.js b/modules/browser.js index 86a904c8..e6672e1a 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -379,8 +379,8 @@ TreeStyleTabBrowser.prototype = { getTabFromCoordinates : function TSTBrowser_getTabFromCoordinates(aCoordinates, aTabs) { var tab = this.document.elementFromPoint(aCoordinates.clientX, aCoordinates.clientY); - if (tab && tab.localName == 'tab') - return (!aTabs || aTabs.indexOf(tab) > -1) ? tab : null ; + if (tab && tab.localName == 'tab' && (!aTabs || aTabs.indexOf(tab) > -1)) + return tab; var positionCoordinate = aCoordinates[this.screenPositionProp];