@@ -997,7 +997,8 @@ URL processing model</h4>
997997 given a {{CSSStyleSheet}} |sheet|,
998998 a string |destination| matching a {{RequestDestination}} ,
999999 a "no-cors" or "cors" |corsMode|,
1000- and an algorithm |processResponse| accepting a [=/response=] :
1000+ and an algorithm |processResponse| accepting a [=/response=] and a null, failure or byte
1001+ stream:
10011002
10021003 1. Let |environmentSettings| be |sheet|'s [=relevant settings object=] .
10031004
@@ -1009,29 +1010,32 @@ URL processing model</h4>
10091010
10101011 5. Let |referrer| be |documentBase|.
10111012
1012- 6. If |base| is null, set |base| to |documentBase| .
1013+ 6. Let |handleResourceFetchDone| be to do nothing .
10131014
1014- 7. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
1015+ 7. If |base| is null, set |base| to |documentBase|.
1016+
1017+ 8. Let |parsedUrl| be the result of the [=URL parser=] steps with |url| and |base|.
10151018 If the algorithm returns an error, return.
10161019
1017- 8 . If |corsMode| is "cors", set |referrer| to |sheet|'s
1020+ 9 . If |corsMode| is "cors", set |referrer| to |sheet|'s
10181021 <a spec=cssom>location</a> . [[CSSOM]]
10191022
1020- 9 . Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
1023+ 10 . Let |req| be a new [=/request=] whose [=request/url=] is |parsedUrl|, whose
10211024 [=request/destination=] is |destination|, [=request/mode=] is |mode|, [=request/origin=]
10221025 is |environmentSettings|'s [=environment settings object/origin=] ,
10231026 [=request/credentials mode=] is "same-origin", [=request/use-url-credentials flag=] is
10241027 set, and whose [=request/header list=] is a [=/header list=] containing a [=header=]
10251028 with its [=header/name=] set to "referrer" and its [=header/value=] set to |referrer|.
10261029
1027- 10 . [=/Fetch=] |req|, with |taskDestination| set to |global|, and |processResponse| set to
1028- the following steps given [=/response=] |res|:
1029-
1030- 1. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set, set |handleResourceFetchDone|
1031- given [=/response=] |res| to [=finalize and report timing=] with |res|, |global|, and
1030+ 11 . [=/Fetch=] |req|, with |taskDestination| set to |global|, and |processResponseEndOfBody|
1031+ set to the following steps given [=/response=] |res| and Null, failure or byte stream
1032+ |byteStream|:
1033+ 1. If |sheet|'s <a spec=cssom>origin-clean flag</a> is set,
1034+ [=finalize and report timing=] with |res|, |global|, and
10321035 <code> "css"</code> . [[CSSOM]]
10331036
1034- 2. Call |processResponseDone| with |res|.
1037+ 2. Call |processResponse| with |res| and |byteStream|.
1038+
10351039 </div>
10361040
10371041<h2 id="numeric-types">
0 commit comments