From ccff1f16d376ced3ef0544df9a942bbf6fc49494 Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Wed, 9 Mar 2016 18:34:28 +0900 Subject: [PATCH] Replace "used flag" with "disturbed" definition and the consume body behavior. --- spec/service_worker/index.bs | 89 +++++++++++++---------------- spec/service_worker/index.html | 98 +++++++++++++------------------- spec/service_worker_1/index.bs | 67 +++++++++++----------- spec/service_worker_1/index.html | 74 ++++++++++++------------ 4 files changed, 152 insertions(+), 176 deletions(-) diff --git a/spec/service_worker/index.bs b/spec/service_worker/index.bs index faf9619f..e1445566 100644 --- a/spec/service_worker/index.bs +++ b/spec/service_worker/index.bs @@ -130,11 +130,15 @@ spec: fetch; urlPrefix: https://fetch.spec.whatwg.org/ type: dfn text: basic filtered response; url: concept-filtered-response-basic text: CORS filtered response; url: concept-filtered-response-cors + text: disturbed; url: concept-body-disturbed + text: empty; url: concept-empty-readablestream text: extract a mime type; url: concept-header-extract-mime-type text: fetch; url: concept-fetch text: filtered response; url: concept-filtered-response + text: get a reader; url: concept-get-reader text: header; url: concept-header text: http fetch; url: concept-http-fetch + text: locked; url: concept-body-locked text: navigation request text: network error; url: concept-network-error text: non-subresource request @@ -142,9 +146,12 @@ spec: fetch; urlPrefix: https://fetch.spec.whatwg.org/ text: potential-navigation-or-subresource request text: process response text: process response end-of-file + text: read all bytes; url: concept-read-all-bytes-from-readablestream + text: ReadableStream; url: concept-readablestream text: request; for: fetch; url: concept-request text: response; for: fetch; url: concept-response text: skip service worker flag + text: stream; url: concept-body-stream text: subresource request text: synchronous flag text: terminate; url: concept-fetch-terminate @@ -172,6 +179,7 @@ spec: fetch; urlPrefix: https://fetch.spec.whatwg.org/ text: termination reason text: type type: interface + text: Headers text: Request text: RequestInfo text: Response @@ -1770,7 +1778,7 @@ spec: webidl; urlPrefix: https://heycam.github.io/webidl/

Service workers have an essential functional event fetch. For fetch event, service workers use the FetchEvent interface which extends the {{ExtendableEvent}} interface.

-

Each event using {{FetchEvent}} interface has the following associated flag that is initially unset: +

Each event using {{FetchEvent}} interface has an associated potential response (a response), initially set to null, and the following associated flags that are initially unset: