Bug 181671 - Service Workers should intercept `sendBeacon` requests
Summary: Service Workers should intercept `sendBeacon` requests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-16 00:08 PST by Yoav Weiss
Modified: 2018-01-16 04:14 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 Yoav Weiss 2018-01-16 00:08:41 PST
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
Comment 1 Radar WebKit Bug Importer 2018-01-16 04:14:20 PST
<rdar://problem/36540300>