- From: Matt Falkenhagen <notifications@github.com>
- Date: Thu, 07 Jun 2018 16:58:16 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1323/review/126995603@github.com>
mattto commented on this pull request. > + 1. If |client|’s <a>creation URL</a> is not a <a>potentially trustworthy URL</a>, reject |promise| with a "{{SecurityError}}" {{DOMException}} and return. + 1. If |client| is an [=environment settings object=] and is not a [=window client=], then: + 1. Let |clientObject| be the result of running <a>Create Client</a> algorithm with |client| as the argument. + 1. Resolve |promise| with |clientObject| and return. + 1. Else: + 1. Let |browsingContext| be null. + 1. Let |visibilityState| be null. + 1. Let |focusState| be false. + 1. Let |ancestorOriginsList| be the empty list. + 1. If |client| is an [=environment settings object=], set |browsingContext| to |client|'s [=environment settings object/global object=]'s [=/browsing context=]. + 1. Else, set |browsingContext| to |client|’s [=environment/target browsing context=]. + 1. <a>Queue a task</a> |task| to run the following substeps on |browsingContext|'s <a>event loop</a> using the <a>user interaction task source</a>: + 1. Set |visibilityState| to |browsingContext|'s <a>active document</a>'s {{Document/visibilityState}} attribute value. + 1. Set |focusState| to the result of running the <a>has focus steps</a> with |browsingContext|'s <a>active document</a> as the argument. + 1. If |client| is a <a>window client</a>, set |ancestorOriginsList| to |browsingContext|'s <a>active document</a>'s <a>relevant global object</a>'s {{Location}} object's [=Location/ancestor origins list=]'s associated list. + 1. Wait for |task| to have executed. Ohhh that's a great point. Yes I'll add 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/1323#discussion_r193921235
Received on Thursday, 7 June 2018 23:58:41 UTC