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)
|
getTabFromCoordinates : function TSTBrowser_getTabFromCoordinates(aCoordinates, aTabs)
|
||||||
{
|
{
|
||||||
var tab = this.document.elementFromPoint(aCoordinates.clientX, aCoordinates.clientY);
|
var tab = this.document.elementFromPoint(aCoordinates.clientX, aCoordinates.clientY);
|
||||||
if (tab && tab.localName == 'tab')
|
if (tab && tab.localName == 'tab' && (!aTabs || aTabs.indexOf(tab) > -1))
|
||||||
return (!aTabs || aTabs.indexOf(tab) > -1) ? tab : null ;
|
return tab;
|
||||||
|
|
||||||
var positionCoordinate = aCoordinates[this.screenPositionProp];
|
var positionCoordinate = aCoordinates[this.screenPositionProp];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user