無用なトラブルを起こさないよう、とりあえずSession Managerでのセッション復元時にはタブをすべて閉じるようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6617 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
9c4c540993
commit
74721d85f9
@ -189,6 +189,12 @@ TreeStyleTabService.overrideExtensionsPreInit = function TSTService_overrideExte
|
|||||||
'var tabcount = ',
|
'var tabcount = ',
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
gBrowser.treeStyleTab.collapseExpandAllSubtree(false, true);
|
gBrowser.treeStyleTab.collapseExpandAllSubtree(false, true);
|
||||||
|
gBrowser.treeStyleTab.getTabsArray(gBrowser)
|
||||||
|
.slice(1)
|
||||||
|
.reverse()
|
||||||
|
.forEach(function(aTab, aIndex) {
|
||||||
|
gBrowser.removeTab(aTab);
|
||||||
|
});
|
||||||
TreeStyleTabService.restoringTree = true;
|
TreeStyleTabService.restoringTree = true;
|
||||||
$&]]>
|
$&]]>
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user