Chromium Code Reviews

Unified Diff: LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html

Issue 222153002: Disallow connecting an insecure WebSocket from a secure page. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html
diff --git a/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html b/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc7c6405554fe530f5afd36b5a5bace0095edbb5
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/websocket/resources/expect-throw-on-construction-worker.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+<script>
+
+var worker = new Worker("expect-throw-on-construction.js");
+worker.onmessage = function (evt)
+{
+ window.opener.postMessage(evt.data, "*");
+};
+
+</script>
+</head>
+<body>
+</body>
+</html>

Powered by Google App Engine