зеркало из https://github.com/mozilla/gecko-dev.git
Bug 343212: Clear private data...>Browsing History should also clear the 'Undo Close Tab' history, patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor
This commit is contained in:
Родитель
18ff69e51b
Коммит
916e5452a1
|
@ -312,13 +312,17 @@ SessionStoreService.prototype = {
|
|||
this._uninit();
|
||||
break;
|
||||
case "browser:purge-session-history": // catch sanitization
|
||||
this._closedWindows = [];
|
||||
this._forEachBrowserWindow(function(aWindow) {
|
||||
Array.forEach(aWindow.getBrowser().browsers, function(aBrowser) {
|
||||
delete aBrowser.parentNode.__SS_data;
|
||||
});
|
||||
});
|
||||
this._clearDisk();
|
||||
// also clear all data about closed windows and tabs
|
||||
this._closedWindows = [];
|
||||
for (ix in this._windows) {
|
||||
this._windows[ix]._closedTabs = [];
|
||||
}
|
||||
// give the tabbrowsers a chance to clear their histories first
|
||||
var win = this._getMostRecentBrowserWindow();
|
||||
if (win)
|
||||
|
|
Загрузка…
Ссылка в новой задаче