summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/unload-a-document/004.html
blob: bb15cd8ef9244a0e9e49d73bb4c8a405ee1a6841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<title>WebSockets: navigating nested browsing context with closed websocket</title>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/common/utils.js></script>
<div id=log></div>
<script>
var uuid;
var t = async_test();
t.step(function() {uuid = token()});
var navigate = t.step_func(function() {
  document.getElementsByTagName("iframe")[0].src = 'data:text/html,<body onload="history.back()">';
});
</script>
<iframe src=002-1.html></iframe>