blob: 00f18fdd29d5133a5c2ccdbf0d5799ff38688425 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
if (window.testRunner)
testRunner.dumpFrameLoadCallbacks();
jsTestIsAsync = true;
</script>
</head>
<body>
<script>
description("Tests that we do not open a new window to an invalid URL. This test PASSED if you see an entry in the dumped frame load callbacks of the form: &quot;willPerformClientRedirectToURL: http://A=a%B=b&quot; followed by &quot;didCancelClientRedirectForFrame&quot;.");
onload = function() {
win = window.open("http://A=a%B=b", "_top");
shouldBecomeEqual("win.testRunner.didCancelClientRedirect", "true", finishJSTest);
};
</script>
</body>
</html>