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

Unified Diff: LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html

Issue 768753003: Downgrade the security of a secured page when plugins make insecure calls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test for prefetching from insecure source added 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698