chromium/third_party/blink/web_tests/http/tests/security/resources/post-location-to-opener.html

<script>
    opener.postMessage({ 'location': location.href }, '*');
</script>