blob: 21f109fd3dfea49d16ee3665f97caf68434d0307 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/testharness.js"></script>
<script src="/js-test-resources/testharnessreport.js"></script>
<script>
if (window.testRunner) {
testRunner.setCanOpenWindows();
testRunner.overridePreference("WebKitAllowRunningInsecureContent", true);
}
var test = async_test("Test that an insecure WebSocket connection is not blocked when created in a worker created from HTTPS resource.");
test.step(function ()
{
window.addEventListener("message", test.step_func(function (evt)
{
assert_equals(evt.data, "DONE", "evt.data");
test.done();
}), false);
const w = window.open("https://127.0.0.1:8443/security/mixedContent/websocket/resources/expect-successful-construction-worker.html");
test.add_cleanup(() => w.close());
});
</script>
</head>
<body>
</body>
</html>