tabbrowser要素以外の所でreadyToOpenChildTabが呼ばれた場合にタブが開かれない問題を修正(reported by Bert Blaha)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7189 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-13 13:58:30 +00:00
parent 5de52365d3
commit 5cd42a7134

View File

@ -1175,12 +1175,13 @@ var TreeStyleTabUtils = {
if (!this.getTreePref('autoAttachNewTabsAsChildren')) return;
var frame = this.getFrameFromTabBrowserElements(aFrameOrTabBrowser);
if (!frame) return;
if (!frame)
return;
var ownerBrowser = this.getTabBrowserFromFrame(frame);
var parentTab = this.getTabFromFrame(frame, ownerBrowser);
if (parentTab.getAttribute('pinned') == 'true')
if (!parentTab || parentTab.getAttribute('pinned') == 'true')
return;
ownerBrowser.treeStyleTab.ensureTabInitialized(parentTab);