| Index: third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-same-origin-websocket.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-same-origin-websocket.html b/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-same-origin-websocket.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c93d819f81a26718f9a7afd37a5ab868a39a0e43
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-same-origin-websocket.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script>
|
| +if (window.testRunner) {
|
| + // Block third-party cookies.
|
| + testRunner.setBlockThirdPartyCookies(true);
|
| +}
|
| +
|
| +async_test(t => {
|
| + window.addEventListener(
|
| + 'message',
|
| + t.step_func_done(event => {
|
| + assert_equals(event.data, 'DONE: undefined');
|
| + }),
|
| + false);
|
| +}, "Test that third-party cookies are blocked for WebSockets even when the " +
|
| + "WebSocket's URL's domain is an exact match for the domain of its " +
|
| + "initiator.");
|
| +</script>
|
| +<!--
|
| + The iframe is a remote origin. It uses a remote origin for the WebSocket.
|
| +-->
|
| +<iframe src="http://localhost:8000/security/cookies/websocket/resources/set-cookie.html?remote"></iframe>
|
|
|