blob: d33d9133a8aad93001f236f68a9d8bd5a7d1a992 [file] [log] [blame]
<html>
<body>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.setCloseRemainingWindowsWhenComplete(true);
}
window.addEventListener("message", function (e) {
if (window.testRunner)
testRunner.notifyDone();
}, false);
</script>
<p>This test opens a window that connects to an insecure ws:// WebSocket. We
should block the connection and trigger a mixed content callback because the
main frame is HTTPS, but the data sent over the socket could be recorded or
controlled by an attacker.</p>
<script>
onload = function() {
window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-websocket.html");
}
</script>
</body>
</html>