Bug 183695
| Summary: | Service Worker does not receive a fetch event when sending a FormData using XMLHttpRequest | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Thiago Soares <thiago.soares> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Major | CC: | beidson, cdumez, youennf |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Mac | ||
| OS: | macOS 10.13 | ||
| URL: | https://tas1982.github.io/serviceworker/public/index.html | ||
Thiago Soares
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
youenn fablet
Let's do the work in bug 187461.
*** This bug has been marked as a duplicate of bug 187461 ***