| 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..62d3874b5df3464afb709bdac2e5d7ccc0692938
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/mixedContent/strict-mode-websocket-blocked.https.html
|
| @@ -0,0 +1,18 @@
|
| +<!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>
|
| + <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>
|
|
|