<?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>183695</bug_id>
          
          <creation_ts>2018-03-16 07:10:24 -0700</creation_ts>
          <short_desc>Service Worker does not receive a fetch event when sending a FormData using XMLHttpRequest</short_desc>
          <delta_ts>2022-01-05 01:07:49 -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 Technology Preview</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>187461</dup_id>
          
          <bug_file_loc>https://tas1982.github.io/serviceworker/public/index.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thiago Soares">thiago.soares</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1406972</commentid>
    <comment_count>0</comment_count>
    <who name="Thiago Soares">thiago.soares</who>
    <bug_when>2018-03-16 07:10:24 -0700</bug_when>
    <thetext>Request sent using the XMLHttpRequest and whose body is a FormData is not being intercepted by the Service Worker.

It can be tested on 
https://tas1982.github.io/serviceworker/public/index.html

The page has a form and two buttons:
- The first button will submit the form and that request will be received as a fetch event in the Service Worker
- The second button will submit the from using a FormData object and a XMLHttpRequest. This request will go direct to the server. The service worker will not intercept it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1828209</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-01-05 01:07:49 -0800</bug_when>
    <thetext>Let&apos;s do the work in bug 187461.

*** This bug has been marked as a duplicate of bug 187461 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>