summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html')
-rw-r--r--testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html b/testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html
new file mode 100644
index 0000000000..302e9d9cc1
--- /dev/null
+++ b/testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html
@@ -0,0 +1,6 @@
+<script>
+const ident = new URL(location).searchParams.get("ident"),
+ post = () => parent.postMessage({ name: window.name, ident }, "*");
+onmessage = () => post();
+post();
+</script>