-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
I had a look at Chrome, Firefox and Safari implementation of ServiceWorkerClients get and matchAll implementations.
They are not really aligned for fetch event resultingClientId.
For ServiceWorkerClients.get called synchronously using resultingClientId from a navigation fetch event handler:
- Chrome is waiting for the document to be parsed before resolving the get promise. This is shown in https://wpt.fyi/results/service-workers/service-worker/controlled-iframe-postMessage.https.html where the fetch response is waiting on
get
promise to resolve. - Firefox and Safari are resolving the promise right away (I believe Firefox exposes the client URL
about:blank
and Safari exposes the request URL)
For ServiceWorkerClients.matchAll called synchronously from a navigation fetch event handler
- Chrome is not exposing the resultingClientId client
- Firefox is exposing the resultingClientId client (url is
about:blank
) - Shipping Safari is exposing the resultingClientId client (url is the request URL), though WebKit ToT recently changed to match Chrome to fix some potential issues in case of push event processing.
@asutherland, @yoshisatoyanagisawa, thoughts?
Metadata
Metadata
Assignees
Labels
No labels