Chromium Code Reviews| Index: LayoutTests/http/tests/security/mixedContent/strict-mode-websocket-blocked.https.html |
| diff --git a/LayoutTests/http/tests/security/mixedContent/strict-mode-websocket-blocked.https.html b/LayoutTests/http/tests/security/mixedContent/strict-mode-websocket-blocked.https.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2b148e0383143e5f990b970f6ab4d550e9f18721 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/security/mixedContent/strict-mode-websocket-blocked.https.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content"> |
| + <script src="/js-test-resources/testharness.js"></script> |
| + <script src="/js-test-resources/testharnessreport.js"></script> |
| +</head> |
| +<body> |
| + <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
|
| + <script> |
| + test(function () { |
| + assert_throws("SecurityError", |
| + function () { |
| + new WebSocket("ws://127.0.0.1:8880/echo"); |
| + }); |
| + }, "Test that insecure websocket construction throws."); |
| + </script> |
| +</body> |
| +</html> |