Bug 380589 - Clear Private Data might miss some SessionStore data

p=Simon Bunzli <zeniko@gmail.com>
r=dietrich
This commit is contained in:
asqueella@gmail.com 2007-06-21 12:18:33 -07:00
Родитель 72f3f19660
Коммит 763e30c7c1
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -293,6 +293,7 @@ SessionStoreService.prototype = {
delete aBrowser.parentNode.__SS_data;
});
});
this._lastWindowClosed = null;
this._clearDisk();
// also clear all data about closed tabs
for (ix in this._windows) {
@ -412,7 +413,7 @@ SessionStoreService.prototype = {
this._loadState = STATE_RUNNING;
this._lastSaveTime = Date.now();
// don't save during the first five seconds
// don't save during the first ten seconds
// (until most of the pages have been restored)
this.saveStateDelayed(aWindow, 10000);
@ -1296,8 +1297,8 @@ SessionStoreService.prototype = {
}
// helper hash for ensuring unique frame IDs
var aIdMap = { used: {} };
this.restoreHistory(aWindow, aTabs, aIdMap);
var idMap = { used: {} };
this.restoreHistory(aWindow, aTabs, idMap);
},
/**