Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/browsers/browsing-the-web/unloading-documents/unload/006.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>salvagable state of document after setting pagehide listener</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
var t = async_test();
var loaded = false;
onload = function() {setTimeout(function() {
var iframe = document.getElementsByTagName("iframe")[0]
onload = null;
iframe.src="006-1.html?" + Math.random();
}, 100)};
</script>
<iframe></iframe>