Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / XFrameOptions / x-frame-options-deny.html
blobb6ae8334585285a61a7e5adf784a242cb78ef59e
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.dumpChildFramesAsText();
5 testRunner.dumpResourceLoadCallbacks();
6 testRunner.waitUntilDone();
9 function checkIfDone() {
10 try {
11 var url = document.querySelector('iframe').contentWindow.location.href;
12 console.log("FAIL: Could read contentWindow.location.href");
13 } catch (e) {
14 console.log("PASS: Access to contentWindow.location.href threw an exception.");
17 testRunner.notifyDone();
19 </script>
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>