As we have been looking into integration of more events delivered to Service Workers which may not have documents associated with them (e.g., Background Sync, Background Fetch, Notifications, etc.), the current debugging situation continues to be a problem for developers (including large Google teams).
One idea we previously discussed was the ability to export the logged content (and state) of Service Workers and their events ala chrome:net-internals.
There are several options for accomplishing this:
* extending chrome:net-internals with SW event lifecycle data (perhaps a new tab?) to re-use the existing serialization/deserialization infrastructure
* extending chrome:serviceworker-internals with this capability
Regardless of which approach we take for internals, devtools will probably want to expose better/more data about these events somehow. Perhaps via some ability to view "historical" events from the SW logs when re-opening devtools on a site?
Comment 1 by peter@chromium.org
, Jun 1 2018