blob: 7de5ff6ab82b5bf6c9bb0d89aa6dc46d3e1397a9 [file] [log] [blame]
<!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&notifyDone=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53))</script>" target="_blank" rel="opener">Click me</a>
</body>
</html>