Skip to content

Commit

Permalink
WIP: Editorial: adjust to fetch refactor (#7355)
Browse files Browse the repository at this point in the history
See whatwg/fetch#1413

Fetch now reports timing automatically if initiator is passed.
  • Loading branch information
noamr authored Jun 17, 2022
1 parent 76810b3 commit b507ff6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions css-values-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,16 +1035,14 @@ URL Processing Model</h4>
[=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 <var ignore>taskDestination</var>
set to |global|, and <var ignore>processResponseConsumeBody</var> set to the following steps given
[=/response=] |res| and Null, failure or byte stream |byteStream|:
1. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set,
[=fetch-controller/conclude=] |controller|, with <var ignore>initiatorType</var> set
to <code>"css"</code>. [[CSSOM]]
10. If |sheet|'s <a spec=cssom>origin-clean flag</a> 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|.

</div>

Expand Down

0 comments on commit b507ff6

Please sign in to comment.