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 WorkersAssignee: 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
Reported 2018-08-01 14:24:07 PDT
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
Jacek Stypuła
Comment 1 2023-09-14 06:01:39 PDT
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
Comment 2 2024-12-06 12:00:00 PST
FWIW, I forked the repo and ran it on Safari 18.0 and it did not reproduce for me.
Note You need to log in before you can comment on or make changes to this bug.