24 lines
718 B
HTML
24 lines
718 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.setCustomPolicyDelegate(true, false);
|
|
testRunner.waitUntilDone();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Tests that we do not redirect to an invalid URL initiated by JavaScript. This test PASSED if you see an entry in the dumped frame load callbacks of the form: "willPerformClientRedirectToURL: http://A=a&B=b" followed by "didCancelClientRedirectForFrame".</p>
|
|
<p>Note, this test must be run in DumpRenderTree.</p>
|
|
<script>
|
|
window.location.href = "http://A=a&B=b";
|
|
window.setTimeout(function() {
|
|
if (window.testRunner)
|
|
testRunner.notifyDone();
|
|
}, 0);
|
|
</script>
|
|
</body>
|
|
</html>
|