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

Unified Diff: LayoutTests/http/tests/security/mixedContent/upgrade-script-in-frame.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-script-in-frame.https.html
diff --git a/LayoutTests/http/tests/security/mixedContent/upgrade-script-in-frame.https.html b/LayoutTests/http/tests/security/mixedContent/upgrade-script-in-frame.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..18f2235f9a77d6d800a6814d42b442c7fcbddc80
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/upgrade-script-in-frame.https.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+<head>
+ <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-content">
+ <script>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.overridePreference("WebKitAllowRunningInsecureContent", false);
+ }
+ window.addEventListener("message", function (e) {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, false);
+ </script>
+</head>
+<body>
+ <p>This test passes if the script in the frame below is loaded securely.</p>
+ <iframe src="resources/frame-with-insecure-script.html"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698