| Index: third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html
|
| diff --git a/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html b/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..88f47a1922883b716ab402e678b6ee3ae84345ad
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/broadcastchannel/sandbox.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<meta charset=utf-8>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<body>
|
| +<script>
|
| +async_test(t => {
|
| + self.onmessage = t.step_func(e => {
|
| + assert_equals(e.data, 'Exception: NotSupportedError');
|
| + t.done();
|
| + });
|
| + }, 'Creating BroadcastChannel in opaque origin should fail.');
|
| +</script>
|
| +<iframe sandbox="allow-scripts" src="resources/sandboxed.html"></iframe>
|
| +</body>
|
|
|