2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
9 if (location
.hash
.length
== 0)
10 document
.getElementById("console").innerHTML
= "PASS: cross-site assignment of location.hash not allowed";
12 document
.getElementById("console").innerHTML
= "FAIL: cross-site assignment of location.hash was allowed!";
14 if (window
.testRunner
)
15 testRunner
.notifyDone();
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>