Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

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

Issue 351163002: Prevent sandboxed iframes from bypassing WebSocket mixed content checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/mixedContent/websocket/resources/sandboxed-expect-throw-on-construction.html
diff --git a/LayoutTests/http/tests/security/mixedContent/websocket/resources/sandboxed-expect-throw-on-construction.html b/LayoutTests/http/tests/security/mixedContent/websocket/resources/sandboxed-expect-throw-on-construction.html
new file mode 100644
index 0000000000000000000000000000000000000000..e5402952d325a178260eb8c9530b7ae002e39d6b
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/websocket/resources/sandboxed-expect-throw-on-construction.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+window.addEventListener("message", function (e) { window.opener.postMessage(e.data, "*"); });
+</script>
+<iframe sandbox="allow-scripts" src="expect-throw-on-construction.html"></iframe>
+</head>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698