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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/active-subresource-in-iframe-blocked.https.html

Issue 1392993002: Strictly block blockable mixed subresources in subframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/active-subresource-in-iframe-blocked.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/active-subresource-in-iframe-blocked.https.html b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/active-subresource-in-iframe-blocked.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..4219f69a3afd95ef7353c5ebf06af4196faf9517
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/mixedContent/active-subresource-in-iframe-blocked.https.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html>
+<head>
+ <script>
+ if (window.testRunner) {
+ // This test checks that active mixed subresources in iframes
+ // are always blocked without asking the embedder. So the test
+ // sets the embedder to allow running insecure content, and
+ // then checks that the content is blocked despite the
+ // embedder's setting.
+ testRunner.setAllowRunningOfInsecureContent(true);
+ testRunner.dumpAsText();
+ }
+ </script>
+</head>
+<body>
+ <p>This test passes if the active subresource in the frame below is blocked.</p>
+ <iframe src="resources/frame-with-insecure-css.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698