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