blob: f2c69e4d1fa54e9b95f43b1e41d553e2ecd20eac [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("PASS: Could not read contentWindow.location.href");
else
console.log("FAIL: Could read contentWindow.location.href");
testRunner.notifyDone();
}
</script>
<p>There should be no content in the iframe below</p>
<iframe style="width:500px; height:500px" src="http://localhost:8000/security/XFrameOptions/resources/x-frame-options-deny-meta-tag-subframe-parent-same-origin-deny.html" onload="checkIfDone()"></iframe>