blob: eb8c0eb8632f15727d1d72b94f6bbc1398e0490e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-WebKit-CSP" content="form-action 127.0.0.1:8000">
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.clearBackForwardList();
testRunner.dumpBackForwardList();
}
window.addEventListener('load', function() {
setTimeout(function() {
document.getElementById('submit').click();
}, 0);
});
setTimeout(function () {
testRunner.notifyDone();
}, 1000);
</script>
</head>
<body>
<form id="form1" action="/navigation/resources/redirection-response.php?host=localhost:8000&status=302&target=form-target.pl" method="post">
<input type='text' name='fieldname' value='fieldvalue'>
<input type='submit' id='submit' value='submit'>
</form>
<p>Tests that blocking form redirect works correctly. If this test passes, you will see a console error, and will not see a page indicating a form was POSTed.</p>
</body>
</html>