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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <iframe id="img-frame" src="https://127.0.0.1:8443/security/mixedContent/resourc es/frame-with-insecure-css-image.html";>
4 </iframe>
5 <script>
6 var pageLoadCounter = 0;
7
8 window.addEventListener("message", function (e) {
9 ++pageLoadCounter;
10
11 if (pageLoadCounter === 1) {
12 console.log("Reloading...")
13 document.getElementById("img-frame").contentWindow.location.reload();
14 }
15
16 if (pageLoadCounter === 2) {
17 console.log("Second load finished.")
18 if(window.testRunner)
19 testRunner.notifyDone();
20 }
21 }, false);
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698