- From: Dave Tapuska <notifications@github.com>
- Date: Fri, 12 Jul 2019 08:47:39 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 12 July 2019 15:48:02 UTC
dtapuska commented on this pull request. > @@ -3465,6 +3496,20 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe Note: When an exception is [=throw|thrown=], the implementation does undo (roll back) any changes made to the cache storage during the batch operation job. </section> + + <section algorithm> + <h3 id="get-client-state-algorithm"><dfn>Get Client State</dfn></h3> + + : Input + :: |client|, a [=/service worker client=] + : Output + :: |state|, a string + + 1. Let |state| be {{ClientState/"active"}}. + 1. If |client|'s [=environment settings object/global object=]'s [=owning document=] is [=frozen=], set |state| to be {{ClientState/"frozen"}}. Client is an enviornment not necessarily an environment settings object (which defines responsible document). But if you think that is clear I'm fine with that. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1442#discussion_r303042375
Received on Friday, 12 July 2019 15:48:02 UTC