blob: e9b3ae5784f6c1f99cf2e6b17a522a6d4b2fe5d3 [file] [log] [blame]
<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>