Session Manager (https://addons.mozilla.org/firefox/addon/2324)でのセッション復元時において

* すべてのツリーが常に展開された状態になっていたのを修正
* 折り畳まれたツリーがあるとセッション復元に失敗する場合があったのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5542 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-18 02:08:24 +00:00
parent 8d2fdcead5
commit e2e09a93a2

View File

@ -176,13 +176,23 @@ TreeStyleTabService.overrideExtensionsPreInit = function() {
// Session Manager // Session Manager
// https://addons.mozilla.org/firefox/addon/2324 // https://addons.mozilla.org/firefox/addon/2324
// We need to initialize TST before Session Manager restores the last session anyway! // We need to initialize TST before Session Manager restores the last session anyway!
if ('gSessionManager' in window && if ('gSessionManager' in window) {
'onLoad_proxy' in gSessionManager && if ('onLoad_proxy' in gSessionManager &&
'onLoad' in gSessionManager) { 'onLoad' in gSessionManager) {
eval('gSessionManager.onLoad = '+gSessionManager.onLoad.toSource().replace( eval('gSessionManager.onLoad = '+gSessionManager.onLoad.toSource().replace(
'{', '{',
'{ TreeStyleTabService.init();' '{ TreeStyleTabService.init();'
)); ));
}
if ('load' in gSessionManager) {
eval('gSessionManager.load = '+gSessionManager.load.toSource().replace(
'var tabcount = ',
<![CDATA[
gBrowser.treeStyleTab.collapseExpandAllSubtree(false, true);
TreeStyleTabService.restoringWindow = true;
$&]]>
));
}
} }
// FullerScreen // FullerScreen