Add a workaround for bfcache suckage and reenable these tests. r=sheriff for CLOSED TREE
This commit is contained in:
Родитель
023d6da851
Коммит
4519f6aa29
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче