Summary: | [GTK] performs a POST when refreshing a view that was obtained with a GET | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Xan Lopez <xan.lopez> | ||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | danw, gustavo, sam | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Attachments: |
|
Description
Xan Lopez
2009-09-25 23:17:52 PDT
I think this causes automatic posts in bugzilla if you follow a link from a bug after posting, and then come back. Not good :) I suspect ResourceHandleSoup::restartedCallback needs to do: request.setHTTPMethod(String(uri->method)); along with the existing request.setURL, before calling willSendRequest(). (SoupSession will have changed the SoupMessage's method when restarting it in this case.) Created attachment 40454 [details]
redirectreload.diff
Patch with Dan's suggestion plus a test for this.
Comment on attachment 40454 [details]
redirectreload.diff
Thanks!
The newly added test breaks other test, as the extra line in success200.html adds a new empty line in ~20 test results. Need to either change those or do this in some other way. |