From b507ff66c6d09665153b88e03aaedaccb397e31d Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Fri, 17 Jun 2022 21:20:02 +0300 Subject: [PATCH] WIP: Editorial: adjust to fetch refactor (#7355) See https://github.com/whatwg/fetch/pull/1413 Fetch now reports timing automatically if initiator is passed. --- css-values-4/Overview.bs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/css-values-4/Overview.bs b/css-values-4/Overview.bs index 04e125eba0ac..b50136058da8 100644 --- a/css-values-4/Overview.bs +++ b/css-values-4/Overview.bs @@ -1035,16 +1035,14 @@ URL Processing Model [=request/destination=] is |destination|, [=request/mode=] is |corsMode|, [=request/origin=] is |environmentSettings|'s [=environment settings object/origin=], [=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is - set, and whose [=request/referrer=] is |referrer|. + set, [=request/client=] is |environmentSettings|, and whose [=request/referrer=] is + |referrer|. - 10. Let |controller| be the result of [=/Fetch|fetching=] |req|, with taskDestination - set to |global|, and processResponseConsumeBody set to the following steps given - [=/response=] |res| and Null, failure or byte stream |byteStream|: - 1. If |sheet|'s origin-clean flag is set, - [=fetch-controller/conclude=] |controller|, with initiatorType set - to "css". [[CSSOM]] + 10. If |sheet|'s origin-clean flag is set, set |req|'s + [=request/initiator=] to "css". [[CSSOM]] - 2. Call |processResponse| with |res| and |byteStream|. + 11. [=/Fetch|fetching=] |req|, with [=fetch/processresponseconsumebody=] set to + |processResponse|.