Bug 181671
| Summary: | Service Workers should intercept `sendBeacon` requests | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Yoav Weiss <yoav> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cdumez, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Yoav Weiss
As discussed on https://bugs.webkit.org/show_bug.cgi?id=181587 Service Workers currently do not intercept `sendBeacon()` requests.
AFAICT from the Fetch spec, only requests issued by the SW[1] and WebSocket handshakes have their "service worker mode" set to "none". That means that all other requests should be intercepted and trigger a "fetch" event.
[1] https://fetch.spec.whatwg.org/#fetch-method
[2] https://fetch.spec.whatwg.org/#websocket-opening-handshake
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/36540300>