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

Unified Diff: LayoutTests/http/tests/security/mixedContent/upgrade-image.https.html

Issue 901903003: CSP: Adding the 'upgrade-insecure-requests' directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/upgrade-image.https.html
diff --git a/LayoutTests/http/tests/security/mixedContent/upgrade-image.https.html b/LayoutTests/http/tests/security/mixedContent/upgrade-image.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..3ef8ecfa4a8f228c2d5319484cd21d2746713fb2
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/upgrade-image.https.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-content">
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpResourceLoadCallbacks();
+ testRunner.dumpResourceRequestCallbacks();
+ testRunner.overridePreference("WebKitAllowDisplayingInsecureContent", false);
+ }
+ </script>
+</head>
+<body>
+ <p>This test passes if the image below is loaded securely.</p>
+ <img src="http://127.0.0.1:8080/security/resources/compass.jpg">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698