blob: be4fbaa652c45ed7740a694b50787071c8090b41 [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-in-body.html" onload="checkIfDone()"></iframe>