chromium/third_party/blink/web_tests/external/wpt/html/semantics/embedded-content/the-iframe-element/resources/post-origin-to-opener.html

<script>
  opener.postMessage({origin: window.origin}, "*");
</script>