| Index: third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-cross-origin-websocket.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-cross-origin-websocket.html b/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-cross-origin-websocket.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..17ee16c517fa1bc89edf2088941dae715d4ff6ae
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/cookies/websocket/third-party-cookie-blocked-on-cross-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 first-party cookies are blocked for WebSockets conforming the " +
|
| + "requirements of the SameSite attribute.");
|
| +</script>
|
| +<!--
|
| + The iframe is a remote origin. It uses the same origin as this test case file
|
| + for the WebSocket.
|
| +-->
|
| +<iframe src="http://localhost:8000/security/cookies/websocket/resources/set-cookie.html"></iframe>
|
|
|