REPRO:
1. Navigate to http://ec2-54-71-23-13.us-west-2.compute.amazonaws.com/
This contains the following HTML page:
<html>
<head>
<title>Test Form</title>
</head>
<body>
<form method="POST" action="submit.php">
<input type="text" name="test" value="Test Value">
<input type="submit" value="Do POST">
</form>
</body>
</html>
2. In DevTools, in Network tab, check "Offline" checkbox to simulate going offline
3. Click the "Submit" button
4. As expected an error page will be shown (net::ERR_INTERNET_DISCONNECTED / offline dino)
5. Click "Reload"
(http://ec2-54-71-23-13.us-west-2.compute.amazonaws.com/submit.php would show whether
the request is GET or POST + it would show the request data)
EXPECTED BEHAVIOR: POST request is resubmitted
ACTUAL BEHAVIOR: GET request is made (AFAICT because step 4 called NCI::RendererDidNavigateToNewPage with |params.method| and |params.page_state| coming from a fake/made-up error page which incorrectly says to use GET rather than POST).
NOTES:
- This issue is similar to issue 860807 (where FNE's method was incorrectly set in NCI::RendererDidNavigateToExistingPage rather than in NCI::RendererDidNavigateToNewPage)
Comment 1 by bugdroid1@chromium.org
, Aug 23