| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 // Block third-party cookies. |
| 7 testRunner.setBlockThirdPartyCookies(true); |
| 8 } |
| 9 |
| 10 async_test(t => { |
| 11 window.addEventListener( |
| 12 'message', |
| 13 t.step_func_done(event => { |
| 14 assert_equals(event.data, 'DONE: undefined'); |
| 15 }), |
| 16 false); |
| 17 }, "Test that first-party cookies are blocked for WebSockets conforming the " + |
| 18 "requirements of the SameSite attribute."); |
| 19 </script> |
| 20 <!-- |
| 21 The iframe is a remote origin. It uses the same origin as this test case file |
| 22 for the WebSocket. |
| 23 --> |
| 24 <iframe src="http://localhost:8000/security/cookies/websocket/resources/set-cook
ie.html"></iframe> |
| OLD | NEW |