don't raise "undefined" error
This commit is contained in:
parent
80b64709c7
commit
d0dd08f88d
@ -134,7 +134,9 @@ function getOwnerTabBrowser()
|
||||
function getOwnerTab(aWindow)
|
||||
{
|
||||
var gBrowser = getOwnerTabBrowser();
|
||||
return gBrowser && gBrowser.treeStyleTab.getTabFromFrame(aWindow || window);
|
||||
return gBrowser &&
|
||||
gBrowser.treeStyleTab &&
|
||||
gBrowser.treeStyleTab.getTabFromFrame(aWindow || window);
|
||||
}
|
||||
|
||||
function getTabById(aId)
|
||||
|
Loading…
Reference in New Issue
Block a user