diff options
Diffstat (limited to '')
-rw-r--r-- | testing/web-platform/tests/webmessaging/broadcastchannel/resources/sandboxed.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/broadcastchannel/resources/sandboxed.html b/testing/web-platform/tests/webmessaging/broadcastchannel/resources/sandboxed.html new file mode 100644 index 0000000000..e32962cdfd --- /dev/null +++ b/testing/web-platform/tests/webmessaging/broadcastchannel/resources/sandboxed.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<script> +try { + let c = new BroadcastChannel('foo'); + parent.postMessage('Created', '*'); +} catch (e) { + parent.postMessage('Exception: ' + e.name, '*'); +} +</script> |