we should save data to TMP's session manager always

This commit is contained in:
SHIMODA Hiroshi 2011-12-15 14:28:40 +09:00
parent 7a7ca701ac
commit 668a4f667e
2 changed files with 4 additions and 9 deletions

View File

@ -5718,6 +5718,9 @@ TreeStyleTabBrowser.prototype = {
this.needRestoreTree = false; this.needRestoreTree = false;
if (this.useTMPSessionAPI && this.getPref('extensions.tabmix.sessions.manager'))
return;
var level = this.getTreePref('restoreTree.level'); var level = this.getTreePref('restoreTree.level');
if ( if (
level <= this.kRESTORE_TREE_LEVEL_NONE || level <= this.kRESTORE_TREE_LEVEL_NONE ||

View File

@ -1110,15 +1110,7 @@ var TreeStyleTabUtils = {
}, this); }, this);
}, },
_useTMPSessionAPI : false, useTMPSessionAPI : false,
get useTMPSessionAPI()
{
return this._useTMPSessionAPI && this.getPref('extensions.tabmix.sessions.manager');
},
set useTMPSessionAPI(aValue)
{
return this._useTMPSessionAPI = !!aValue;
},
kTMP_SESSION_DATA_PREFIX : 'tmp-session-data-', kTMP_SESSION_DATA_PREFIX : 'tmp-session-data-',