From f97f25c9e6b004d2946f9261d416b8f672e920fa Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 4 Dec 2012 12:32:40 +0900 Subject: [PATCH] Fallback to another method to find tabs by coordinates correctly --- modules/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];