Bug 188237
| Summary: | Form post with redirect fails to send body when a service worker is registered | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Patrick Housley <patrick.f.housley> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cdumez, js-webkit, wes, youennf |
| Priority: | P2 | ||
| Version: | Safari 11 | ||
| Hardware: | Mac | ||
| OS: | macOS 10.12 | ||
Patrick Housley
Overview:
When a service worker is registered and a user attempts to submit a form that POSTs data to an endpoint that responds with a 307 redirect, the browser does not send the original POST body to the new URI.
Steps to Reproduce:
1) Access https://webkit-service-worker-test.herokuapp.com/
2) Enter any data into the form
3) Submit the form
Source code for test: https://github.com/patrickhousley/webkit-service-worker-test
Actual Results:
In Safari, the page shows no body data was sent when the browser's request was redirected. Attempt the same thing in Chrome or Firefox and the body data will be present.
Expected Results:
The form data should be sent to the new URI when the browser receives a 307 redirect.
Build Date & Hardware:
Mac OS X 10.12.6
Safari 11.1.2 (12605.3.8.1)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jacek Stypuła
I just stumbled upon this bug. It's 5 years old and still not fixed (Safari 16.6). Firefox and Chrome behave according to the spec.
Wes
FWIW, I forked the repo and ran it on Safari 18.0 and it did not reproduce for me.