Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" > | |
| 5 <script src="/js-test-resources/testharness.js"></script> | |
| 6 <script src="/js-test-resources/testharnessreport.js"></script> | |
| 7 </head> | |
| 8 <body> | |
| 9 <p>This test passes if the image below is treated as blockable content.</p> | |
|
jww
2015/02/23 18:23:17
'socket' not 'image'?
Mike West
2015/02/24 07:43:34
This shouldn't be here at all, really. `testharnes
| |
| 10 <script> | |
| 11 test(function () { | |
| 12 assert_throws("SecurityError", | |
| 13 function () { | |
| 14 new WebSocket("ws://127.0.0.1:8880/echo"); | |
| 15 }); | |
| 16 }, "Test that insecure websocket construction throws."); | |
| 17 </script> | |
| 18 </body> | |
| 19 </html> | |
| OLD | NEW |