summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/browsing-the-web/unloading-documents/unload/006.html
blob: c9e4d68a10ded2dd82bdefd4753529e7eccdcaf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!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>