| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.setXSSAuditorEnabled(true); | |
| 8 testRunner.setCanOpenWindows(); | |
| 9 testRunner.setCloseRemainingWindowsWhenComplete(true); | |
| 10 testRunner.dumpBackForwardList(); | |
| 11 testRunner.waitUntilDone(); | |
| 12 } | |
| 13 </script> | |
| 14 </head> | |
| 15 <body> | |
| 16 <p>Test that under x-xss-protection mode=block that the block page URL is added
on top of the existing page | |
| 17 instead of replacing it. Test passes if the second window has a two-item back-fo
rward list.</p> | |
| 18 <div id="console"></div> | |
| 19 <script> | |
| 20 var w = window.open("/security/xssAuditor/resources/echo-intertag.pl?q=<scr" + "
ipt>alert(/xss/)</scr" + "ipt>&enable-full-block=1"); | |
| 21 if (!w) { | |
| 22 document.getElementById("console").textContent = "Failed to open window. Ch
eck for popup blocking."; | |
| 23 } | |
| 24 if (window.testRunner) { | |
| 25 setInterval(function () { try { w.contentDocument } catch (e) { testRunner.n
otifyDone(); }}, 20); | |
| 26 } | |
| 27 </script> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |