Bug 596592 - Leaving Private Browsing mode resurrects a window that was closed at the time of entering PB. r=ehsan a=test

This commit is contained in:
Mats Palmgren 2010-09-18 13:28:50 +02:00
Родитель 5dac051433
Коммит 61c5befc73
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -45,6 +45,12 @@ function test() {
let ss = Cc["@mozilla.org/browser/sessionstore;1"].
getService(Ci.nsISessionStore);
// clear the history of closed windows (that other tests have created)
// to avoid the issue in bug 596592
// XXX remove this when bug 597071 is fixed
while (ss.getClosedWindowCount())
ss.forgetClosedWindow(0);
// backup our state
let stateBackup = ss.getWindowState(window);