<a id="a" target="_blank" href="chrome://downloads"></a> | |
<script> | |
if (window.testRunner) { | |
testRunner.dumpAsText(); | |
testRunner.setCanOpenWindows(true); | |
testRunner.dumpCreateView(); | |
} | |
// The navigation should be blocked before a new window is opened. | |
a.click(); | |
</script> |