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
parent 9f3a9b188d
commit 452bac2b8b
4 changed files with 20 additions and 11 deletions

View File

@ -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)

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}