| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/js-test-resources/testharness.js"></script> |
| 3 <script src="/js-test-resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 if (window.testRunner) { |
| 6 // Block third-party cookies. |
| 7 testRunner.setAlwaysAcceptCookies(false); |
| 8 } |
| 9 var test = async_test('Test that third-party cookies are blocked for ' + |
| 10 'WebSocket when the document on which the WebSocket is instantiated ' + |
| 11 'is same domain but the top frame is not same domain'); |
| 12 |
| 13 test.step(() => { |
| 14 window.addEventListener( |
| 15 'message', |
| 16 test.step_func_done(event => { |
| 17 assert_equals(event.data, 'DONE'); |
| 18 }), |
| 19 false); |
| 20 }); |
| 21 </script> |
| 22 <!-- Using localhost so that it'll be the same domain as the WebSocket created |
| 23 in the iframe. --> |
| 24 <iframe src="http://localhost:8000/security/cookies/websocket/resources/third-pa
rty-iframe.html"></iframe> |
| OLD | NEW |