3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
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
;
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
30 <iframe src=
"about:blank"></iframe>
31 <div id=
"result">Test FAILED
</div>