diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webmessaging/broadcastchannel/resources/origin.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/broadcastchannel/resources/origin.html b/testing/web-platform/tests/webmessaging/broadcastchannel/resources/origin.html new file mode 100644 index 0000000000..f57d582bbb --- /dev/null +++ b/testing/web-platform/tests/webmessaging/broadcastchannel/resources/origin.html @@ -0,0 +1,8 @@ +<script> +const bc1 = new BroadcastChannel("ladila"), + bc2 = new BroadcastChannel("ladila"); +bc2.onmessage = e => { + parent.postMessage(e.origin, "*"); +} +bc1.postMessage("does not matter"); +</script> |