32 lines
849 B
HTML
32 lines
849 B
HTML
<!-- webkit-test-runner [ UsesBackForwardCache=true ] -->
|
|
<html>
|
|
<script src="../../resources/js-test-pre.js"></script>
|
|
<body>
|
|
|
|
<iframe src="resources/subframe-xmlhttprequest.html" id="a-frame"></iframe> <iframe src="resources/suspend-subframe-2.html" id="b-frame"></iframe>
|
|
|
|
<script type="text/javascript">
|
|
description('Tries to trigger an assert in xmlhttprequest during pagehide.');
|
|
|
|
onpageshow = function(event)
|
|
{
|
|
if (event.persisted) {
|
|
console.log('Restored page from page cache.');
|
|
if (!window.wasFinishJSTestCalled)
|
|
finishJSTest();
|
|
}
|
|
}
|
|
|
|
onload = function()
|
|
{
|
|
setTimeout(function() {
|
|
location.href = 'resources/pagehide-timeout-go-back.html';
|
|
}, 0);
|
|
}
|
|
var successfullyParsed = true;
|
|
var jsTestIsAsync = true;
|
|
</script>
|
|
<script src="../../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|