Index: LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html |
diff --git a/LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html b/LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3fe7b9767b27d33a413d880cefcb9c3b46f4f3bf |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<p> |
+Prefetching from insecure source must trigger a mixed content callback. |
+</p> |
+ |
+<link rel="prefetch" href="http://127.0.0.1:8080/resources/square.png" onload="prefetch_onload()" /> |
+ |
+<script> |
+if (location.protocol != 'https:') |
+ location = 'https://127.0.0.1:8443/security/mixedContent/insecure-prefetch-in-main-frame.html'; |
+ |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpAsText(); |
+} |
+ |
+function prefetch_onload() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+} |
+</script> |
+</body> |
+</html> |