5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.dumpChildFramesAsText();
8 testRunner
.dumpResourceLoadCallbacks();
9 testRunner
.waitUntilDone();
12 function checkIfDone() {
14 var url
= document
.querySelector('iframe').contentWindow
.location
.href
;
15 console
.log("FAIL: Could read contentWindow.location.href");
17 console
.log("PASS: Access to contentWindow.location.href threw an exception.");
20 testRunner
.notifyDone();
25 <p>The frame below should not load, proving that 'sameorigin, sameorigin' === 'sameorigin'.
</p>
26 <iframe style=
"width:500px; height:500px" src=
"http://localhost:8000/security/XFrameOptions/resources/x-frame-options-multiple-headers-sameorigin.cgi" onload=
"checkIfDone()"></iframe>