summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/resources/about-blank-replacement-blank-nested-frame.html
blob: 16f7e7c60ffaf53f84a05de75c97ce20f7a6579f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<html>
<body>
<script>
function nestedLoaded() {
  parent.postMessage({ type: 'NESTED_LOADED' }, '*');
}

// Helper routine to make it slightly easier for our parent to find
// the nested frame.
function nested() {
  return document.getElementById('nested').contentWindow;
}

// NOTE: Make sure not to touch the iframe directly here.  We want to
//       test the case where the initial about:blank document is not
//       directly accessed before load.
</script>
<iframe id="nested" onload="nestedLoaded()"></iframe>
</body>
</html>