<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>188237</bug_id>
          
          <creation_ts>2018-08-01 14:24:07 -0700</creation_ts>
          <short_desc>Form post with redirect fails to send body when a service worker is registered</short_desc>
          <delta_ts>2024-12-06 12:00:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Service Workers</component>
          <version>Safari 11</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Housley">patrick.f.housley</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>js-webkit</cc>
    
    <cc>wes</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1446989</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Housley">patrick.f.housley</who>
    <bug_when>2018-08-01 14:24:07 -0700</bug_when>
    <thetext>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&apos;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 &amp; Hardware:

Mac OS X 10.12.6
Safari 11.1.2 (12605.3.8.1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977479</commentid>
    <comment_count>1</comment_count>
    <who name="Jacek Stypuła">js-webkit</who>
    <bug_when>2023-09-14 06:01:39 -0700</bug_when>
    <thetext>I just stumbled upon this bug. It&apos;s 5 years old and still not fixed (Safari 16.6). Firefox and Chrome behave according to the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079705</commentid>
    <comment_count>2</comment_count>
    <who name="Wes">wes</who>
    <bug_when>2024-12-06 12:00:00 -0800</bug_when>
    <thetext>FWIW, I forked the repo and ran it on Safari 18.0 and it did not reproduce for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>