| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.testRunner) { |
| testRunner.setXSSAuditorEnabled(true); |
| testRunner.dumpAsText(); |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| testRunner.setCanOpenWindows(); |
| testRunner.setCloseRemainingWindowsWhenComplete(true); |
| } |
| window.onload = function() |
| { |
| var event = document.createEvent('MouseEvent'); |
| event.initEvent('click', true, true); |
| document.getElementById('anchorLink').dispatchEvent(event); |
| } |
| </script> |
| </head> |
| <body> |
| <a id="anchorLink" href="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/link-opens-new-window.html¬ifyDone=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53))</script>" target="_blank" rel="opener">Click me</a> |
| </body> |
| </html> |