Bug 208185 - New service worker API 'FetchEvent.handled' needs to be supported
Summary: New service worker API 'FetchEvent.handled' needs to be supported
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-25 01:15 PST by Ting Shao
Modified: 2022-01-12 01:45 PST (History)
8 users (show)

See Also:


Attachments
Patch (17.37 KB, patch)
2022-01-10 09:39 PST, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ting Shao 2020-02-25 01:15:12 PST
'FetchEvent.handled' is a new service worker API which is added in spec as following:

spec: https://w3c.github.io/ServiceWorker/#fetch-event-handled
spec PR: https://github.com/w3c/ServiceWorker/pull/1496
wpt: https://github.com/web-platform-tests/wpt/pull/21652

It's good to support this as it notifies developers when fetch event is processed.
Comment 1 Radar WebKit Bug Importer 2020-02-26 09:45:12 PST
<rdar://problem/59808975>
Comment 2 Philip Jägenstedt 2022-01-07 03:56:23 PST
Note that this is support in Chrome and Firefox since late 2020:
https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent#browser_compatibility
Comment 3 youenn fablet 2022-01-10 09:39:31 PST
Created attachment 448760 [details]
Patch
Comment 4 youenn fablet 2022-01-10 09:39:43 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/32311
Comment 5 EWS Watchlist 2022-01-10 09:41:46 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 6 Chris Dumez 2022-01-11 07:45:32 PST
Comment on attachment 448760 [details]
Patch

r=me
Comment 7 EWS 2022-01-12 01:45:35 PST
Committed r287915 (245948@main): <https://commits.webkit.org/245948@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448760 [details].