無用なトラブルを起こさないよう、とりあえずSession Managerでのセッション復元時にはタブをすべて閉じるようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6617 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-04-22 10:18:24 +00:00
parent 9c4c540993
commit 74721d85f9

View File

@ -189,6 +189,12 @@ TreeStyleTabService.overrideExtensionsPreInit = function TSTService_overrideExte
'var tabcount = ',
<![CDATA[
gBrowser.treeStyleTab.collapseExpandAllSubtree(false, true);
gBrowser.treeStyleTab.getTabsArray(gBrowser)
.slice(1)
.reverse()
.forEach(function(aTab, aIndex) {
gBrowser.removeTab(aTab);
});
TreeStyleTabService.restoringTree = true;
$&]]>
));