Bug 188237 - Form post with redirect fails to send body when a service worker is registered
Summary: Form post with redirect fails to send body when a service worker is registered
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.12
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-01 14:24 PDT by Patrick Housley
Modified: 2023-09-14 06:01 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Housley 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)
Comment 1 Jacek Stypuła 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.