Add a workaround for bfcache suckage and reenable these tests. r=sheriff for CLOSED TREE

This commit is contained in:
Boris Zbarsky 2008-12-04 15:51:25 -05:00
Родитель a48a3cfa4c
Коммит 33ae8fd77e
4 изменённых файлов: 20 добавлений и 11 удалений

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

@ -55,8 +55,15 @@ _HTTP_FILES = \
$(NULL)
_TEST_FILES = \
test_bug92598.xul \
bug92598_window.xul \
92598_nostore.html \
test_bug112564.xul \
bug112564_window.xul \
test_bug113934.xul \
bug113934_window.xul \
test_bug215405.xul \
bug215405_window.xul \
test_bug364461.xul \
bug364461_window.xul \
test_bug396519.xul \
@ -67,16 +74,6 @@ _TEST_FILES = \
test_bug456980.xul \
$(NULL)
# Disabled for now
# test_bug92598.xul \
# bug92598_window.xul \
# 92598_nostore.html \
# test_bug112564.xul \
# bug112564_window.xul \
# test_bug215405.xul \
# bug215405_window.xul \
libs:: $(_HTTP_FILES)
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)

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

@ -64,7 +64,11 @@
for each (let eventType in LISTEN_EVENTS) {
gBrowser.removeEventListener(eventType, eventListener, true);
}
// Work around bug 467960
var history = gBrowser.webNavigation.sessionHistory;
history.PurgeHistory(history.count);
window.close();
window.opener.wrappedJSObject.SimpleTest.finish();
}

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

@ -64,6 +64,10 @@
function finish() {
gBrowser.removeEventListener("pageshow", eventListener, true);
// Work around bug 467960
var history = gBrowser.webNavigation.sessionHistory;
history.PurgeHistory(history.count);
window.close();
window.opener.wrappedJSObject.SimpleTest.finish();
}

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

@ -65,6 +65,10 @@
gBrowser.removeEventListener(eventType, eventListener, true);
}
// Work around bug 467960
var history = gBrowser.webNavigation.sessionHistory;
history.PurgeHistory(history.count);
window.close();
window.opener.wrappedJSObject.SimpleTest.finish();
}