Clarity around "is a service worker client"
Closed this issue · 1 comments
The spec has some occurrences of "is a service worker client".
Note that document, dedicated workers, and shared workers are always service worker clients, even if there is no service worker registration they are under (see https://w3c.github.io/ServiceWorker/#control-and-use-window-client and https://w3c.github.io/ServiceWorker/#control-and-use-worker-client for when service worker clients are created).
Is this intended, or does the spec mean something like: "if the service worker client's active service worker is not null"?
I'm also thinking the spec shouldn't talk about "service workers". The API is either in a Window
or WorkerGlobalScope
... but I'm not sure that there is anything that inherently ties the API to a service worker.