<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.setCustomPolicyDelegate(true, false);
    testRunner.waitUntilDone();
}
</script>
</head>
<body>
<p>Tests that we call the navigation policy delegate when opening a new window to an invalid URL.</p>
<p>Note, this test must be run in DumpRenderTree.</p>
<script>
window.open("http://A=a&B=b", "_top");
window.setTimeout(function() {
    if (window.testRunner)
        testRunner.notifyDone();
}, 0);
</script>
</body>
</html>
