diff options
Diffstat (limited to 'testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/resources/nav-cancelation-2-helper.html')
-rw-r--r-- | testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/resources/nav-cancelation-2-helper.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/resources/nav-cancelation-2-helper.html b/testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/resources/nav-cancelation-2-helper.html new file mode 100644 index 0000000000..a0b4acda2e --- /dev/null +++ b/testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/resources/nav-cancelation-2-helper.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Page with child frame that navigates slowly</title> + +<!-- + This file is used by `../nav-cancelation-2.sub.html`. The iframe below is its + grandchild iframe, and whenever its load event fires we report this up to our + parent Document. +--> +<iframe src="slow.py"></iframe> + +<script> + window.parent.postMessage("grandchild frame created", "*"); + const iframe = document.querySelector('iframe'); + iframe.onload = e => { + window.parent.postMessage("grandchild frame loaded", "*"); + }; +</script> |