Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / xss-DENIED-assign-location-hash.html
blobd26c26c47a144f8284ec7ae4a439f592c77181e0
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
7 function finish()
9 if (location.hash.length == 0)
10 document.getElementById("console").innerHTML = "PASS: cross-site assignment of location.hash not allowed";
11 else
12 document.getElementById("console").innerHTML = "FAIL: cross-site assignment of location.hash was allowed!";
14 if (window.testRunner)
15 testRunner.notifyDone();
17 </script>
19 <body onload="finish()">
21 <iframe src="http://localhost:8000/security/resources/xss-DENIED-assign-location-hash-attacker.html"></iframe>
23 <div id="console"></div>
24 </body>
25 </html>