4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.dumpChildFramesAsText();
10 var a
= window
.frames
[0];
11 // java\0script is invalid url.
13 a
.location
.href
= " javascript:document.write('FAIL')";
14 a
.location
.href
= "javascript\t:document.write('FAIL')";
15 a
.location
.href
= "javascript\1:document.write('FAIL')";
16 a
.location
.href
= "javascript:document.write('FAIL')";
19 a
.location
.replace(" javascript:document.write('FAIL')");
20 a
.location
.replace("javascript\t:document.write('FAIL')");
21 a
.location
.replace("javascript\1:document.write('FAIL')");
22 a
.location
.replace("javascript:document.write('FAIL')");
24 a
.location
= " javascript:document.write('FAIL')";
25 a
.location
= "javascript\t:document.write('FAIL')";
26 a
.location
= "javascript\1:document.write('FAIL')";
27 a
.location
= "javascript:document.write('FAIL')";
32 <body onload=
"runTest()">
34 <iframe name = 'DUPA'
src=
"data:text/html,<p>Inner text should not be replaced.<p>"></iframe>