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

Unified Diff: LayoutTests/http/tests/security/mixedContent/resources/frame-with-subframe-and-reload.html

Issue 439223005: Resources restored from CSS cache should be able to trigger InsecureContent messages (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adjust shouldBlockFetch call to current code Created 6 years, 3 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/resources/frame-with-subframe-and-reload.html
diff --git a/LayoutTests/http/tests/security/mixedContent/resources/frame-with-subframe-and-reload.html b/LayoutTests/http/tests/security/mixedContent/resources/frame-with-subframe-and-reload.html
new file mode 100644
index 0000000000000000000000000000000000000000..e9b3ae5784f6c1f99cf2e6b17a522a6d4b2fe5d3
--- /dev/null
+++ b/LayoutTests/http/tests/security/mixedContent/resources/frame-with-subframe-and-reload.html
@@ -0,0 +1,24 @@
+<html>
+<body>
+<iframe id="img-frame" src="https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-css-image.html";>
+</iframe>
+<script>
+var pageLoadCounter = 0;
+
+window.addEventListener("message", function (e) {
+ ++pageLoadCounter;
+
+ if (pageLoadCounter === 1) {
+ console.log("Reloading...")
+ document.getElementById("img-frame").contentWindow.location.reload();
+ }
+
+ if (pageLoadCounter === 2) {
+ console.log("Second load finished.")
+ if(window.testRunner)
+ testRunner.notifyDone();
+ }
+}, false);
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698