diff --git a/content/treestyletab/group.js b/content/treestyletab/group.js index 32933aa8..792b6f84 100644 --- a/content/treestyletab/group.js +++ b/content/treestyletab/group.js @@ -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)