OLD | NEW |
| (Empty) |
1 <script> | |
2 if (window.testRunner) { | |
3 testRunner.dumpAsText(); | |
4 testRunner.dumpChildFramesAsText(); | |
5 testRunner.dumpResourceLoadCallbacks(); | |
6 testRunner.waitUntilDone(); | |
7 } | |
8 | |
9 function checkIfDone() { | |
10 try { | |
11 var url = document.querySelector('iframe').contentWindow.location.hr
ef; | |
12 console.log("FAIL: Could read contentWindow.location.href"); | |
13 } catch (e) { | |
14 console.log("PASS: Access to contentWindow.location.href threw an ex
ception."); | |
15 } | |
16 | |
17 testRunner.notifyDone(); | |
18 } | |
19 </script> | |
20 | |
21 <p>There should be no content in the iframe below</p> | |
22 <iframe style="width:500px; height:500px" src="http://localhost:8000/security/XF
rameOptions/resources/x-frame-options-deny-meta-tag-subframe-parent-same-origin-
deny.html" onload="checkIfDone()"></iframe> | |
OLD | NEW |