- From: Shao, Ting <notifications@github.com>
- Date: Tue, 21 Jan 2020 20:43:36 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1496/review/346342760@github.com>
tingshao commented on this pull request. > - 1. Invoke [=Update Service Worker Extended Events Set=] with |activeWorker| and |e|. - 1. If |e|'s [=FetchEvent/respond-with entered flag=] is set, set |respondWithEntered| to true. - 1. If |e|'s [=FetchEvent/wait to respond flag=] is set, then: - 1. Wait until |e|'s [=FetchEvent/wait to respond flag=] is unset. - 1. If |e|'s [=FetchEvent/respond-with error flag=] is set, set |handleFetchFailed| to true. - 1. Else, set |response| to |e|'s [=FetchEvent/potential response=]. - 1. If |e|'s <a>canceled flag</a> is set, set |eventCanceled| to true. - 1. If |fetchInstance| is [=fetch/terminated=], then [=queue a task=] to [=AbortSignal/signal abort=] on |requestObject|'s {{Request/signal}}. - - If |task| is discarded, set |handleFetchFailed| to true. - - The |task| *must* use |activeWorker|'s <a>event loop</a> and the <a>handle fetch task source</a>. + 1. Else: + 1. Let |workerRealm| be the [=relevant realm=] of the |activeWorker|'s [=service worker/global object=]. + 1. Set |eventHandled| to [=a new promise=] in |workerRealm|. + 1. [=queue a task=] |task| to run the following substeps: Done -- 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/1496#discussion_r369367775
Received on Wednesday, 22 January 2020 04:43:38 UTC