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> |