Fallback to another method to find tabs by coordinates correctly
This commit is contained in:
parent
fdff43f59c
commit
f97f25c9e6
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user