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

Unified Diff: LayoutTests/http/tests/security/mixedContent/strict-mode-image-in-frame-blocked.https.html

Issue 811773002: Mixed Content: Implement strict mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tests. Created 6 years 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/strict-mode-image-in-frame-blocked.https.html
diff --git a/LayoutTests/http/tests/security/mixedContent/strict-mode-image-in-frame-blocked.https.html b/LayoutTests/http/tests/security/mixedContent/strict-mode-image-in-frame-blocked.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..802db8fe7bb6ab81c9a36494701f468f5343273f
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/strict-mode-image-in-frame-blocked.https.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="strict-mixed-content-checking">
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ }
+ window.addEventListener("message", function (e) {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, false);
+ </script>
+</head>
+<body>
+ <p>This test passes if the image in the frame below is treated as blockable content.</p>
+ <iframe src="resources/frame-with-insecure-image.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698