Bug 183695 - Service Worker does not receive a fetch event when sending a FormData using XMLHttpRequest
Summary: Service Worker does not receive a fetch event when sending a FormData using X...
Status: RESOLVED DUPLICATE of bug 187461
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Major
Assignee: Nobody
URL: https://tas1982.github.io/servicework...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-16 07:10 PDT by Thiago Soares
Modified: 2022-01-05 01:07 PST (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 Thiago Soares 2018-03-16 07:10:24 PDT
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.
Comment 1 youenn fablet 2022-01-05 01:07:49 PST
Let's do the work in bug 187461.

*** This bug has been marked as a duplicate of bug 187461 ***