2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.dumpChildFramesAsText();
5 testRunner
.dumpResourceLoadCallbacks();
6 testRunner
.waitUntilDone();
9 function checkIfDone() {
11 var url
= document
.querySelector('iframe').contentWindow
.location
.href
;
12 console
.log("FAIL: Could read contentWindow.location.href");
14 console
.log("PASS: Access to contentWindow.location.href threw an exception.");
17 testRunner
.notifyDone();
21 <p>There should be no content in the iframe below
</p>
22 <iframe style=
"width:500px; height:500px" src=
"http://127.0.0.1:8000/security/XFrameOptions/resources/x-frame-options-deny.cgi" onload=
"checkIfDone()"></iframe>