Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / same-origin-subframe-about-blank.html
blobaf87115ebb1f7943b78a66fc93b6c4986ed6652b
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 var target;
9 function check_blank() {
10 var x = target.location.private;
11 result.innerHTML = "Test PASSED";
12 if (window.testRunner)
13 testRunner.notifyDone();
16 function reload_blank() {
17 target = window.frames[0];
18 target.location = "about:blank";
19 window.setTimeout("check_blank()", 0);
22 window.onload = reload_blank;
24 </script>
25 <body>
26 This tests the same-origin check on about:blank loaded in a subframe.
27 The test passes if the browser does not crash. You should also see
28 "Test PASSED" below.
29 <br>
30 <iframe src="about:blank"></iframe>
31 <div id="result">Test FAILED</div>
32 </body>
33 </html>