testing/web-platform/tests/html/browsers/windows/nested-browsing-contexts/resources/post-to-parent.html
author Anne van Kesteren <annevk@annevk.nl>
Tue, 05 Mar 2019 12:15:49 +0000
changeset 464220 bcd8267fa1131118669ce89a47d1161aa026f97c
permissions -rw-r--r--
Bug 1528726 [wpt PR 15392] - HTML: nested browsing contexts name attribute, a=testonly Automatic update from web-platform-tests HTML: nested browsing contexts name attribute For https://github.com/whatwg/html/pull/4367. -- wpt-commits: e18c05e5d1ee2c9a2343dda4f8bb38071740ab8a wpt-pr: 15392

<script>
const ident = new URL(location).searchParams.get("ident"),
      post = () => parent.postMessage({ name: window.name, ident }, "*");
onmessage = () => post();
post();
</script>