blob: 5beccd60216e51ab4819867e12ae7a8c59f1c39a [file] [log] [blame]
<html>
<head>
<script>
function loaded()
{
if (window.sessionStorage.getItem("postedForm")) {
window.sessionStorage.removeItem("postedForm");
if (window.testRunner) {
testRunner.setCustomPolicyDelegate(false);
testRunner.notifyDone();
}
return;
}
window.sessionStorage.postedForm = "true";
document.getElementById("testform").submit();
}
</script>
</head>
<body onload="loaded();">
<form id="testform" action="goback-with-policydelegate.php" method="post">
<input id="somefield" type="text" value="form data">
</form>
This page was reached via a form POST. After navigating away, there should be no form resubmission nag when navigating back here.
</body>
</html>