OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="/js-test-resources/testharness.js"></script> |
| 4 <script src="/js-test-resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 |
| 7 if (window.testRunner) { |
| 8 testRunner.setCanOpenWindows(); |
| 9 testRunner.overridePreference("WebKitAllowRunningInsecureContent", false); |
| 10 } |
| 11 |
| 12 var test = async_test("Test that an insecure WebSocket connection is blocked whe
n created in a worker created from HTTPS resource."); |
| 13 test.step(function () |
| 14 { |
| 15 window.addEventListener("message", test.step_func(function (evt) |
| 16 { |
| 17 assert_equals(evt.data, "DONE", "evt.data"); |
| 18 test.done(); |
| 19 }), false); |
| 20 |
| 21 window.open("https://127.0.0.1:8443/security/mixedContent/websocket/resource
s/insecure-websocket-in-secure-worker.html"); |
| 22 }); |
| 23 |
| 24 </script> |
| 25 </head> |
| 26 <body> |
| 27 </body> |
| 28 </html> |
OLD | NEW |