blob: d2695c759e4bdcb61bb8a09e6a41bb67ca35eaa3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="form-action 127.0.0.1:8000">
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
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.py?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>