blob: 42c6503467823d1b732fd72cbf498a4e3fcf91dc [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.dumpResourceLoadCallbacks();
testRunner.waitUntilDone();
}
function checkIfDone() {
var url = document.querySelector('iframe').contentWindow.location.href;
if (!url)
console.log("FAIL: Could not read contentWindow.location.href");
else
console.log("PASS: Could read contentWindow.location.href");
testRunner.notifyDone();
}
</script>
<p>There should be content in the iframe below</p>
<iframe style="width:500px; height:500px" src="http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny-meta-tag-subframe.html" onload="checkIfDone()"></iframe>