diff --git a/fetch.bs b/fetch.bs index d0be5272c..ef9f21a3f 100644 --- a/fetch.bs +++ b/fetch.bs @@ -52,6 +52,7 @@ urlPrefix:https://w3c.github.io/hr-time/#;spec:hr-time urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262 url:realm;text:realm url:sec-list-and-record-specification-type;text:Record + url:current-realm;text:current realm url:sec-parsetext;text:ParseText url:prod-Script;text:Script url:script-record;text:Script Record @@ -3392,7 +3393,7 @@ and a response response, is to run these steps:
To extract content-range values, given a response response -run these steps:
+run these steps:
If response’s header list does not contain `Content-Range
`, then return failure.
@@ -3497,7 +3498,7 @@ run these steps:
Append chunkBytes to bytes.
If bytes's length is greater than 1024, then: +
If bytes's length is greater than 1024, then:
Truncate bytes from the end so that it only contains 1024 bytes. @@ -3517,7 +3518,7 @@ run these steps:
Set response's body's stream to the result of response's body's stream - piped through transformStream. + piped through transformStream.
Wait until first1024Bytes is non-null or response's @@ -3532,8 +3533,8 @@ run these steps:
To determine if response is JavaScript and not JSON given a response -response, run these steps:
+To determine if response is JavaScript and not JSON, given a request request, +a response response, run these steps:
Let responseBodyBytes be null. @@ -3550,7 +3551,7 @@ run these steps:
Let processBodyError be this step: set responseBodyBytes to failure. -
Fully read response's body given processBody +
Fully read response's body given processBody and processBodyError.
Wait for responseBodyBytes to be non-null. @@ -3569,7 +3570,7 @@ run these steps:
given response's header list.Let encoding be the result of legacy extracting an encoding given +
Let encoding be the result of legacy extract an encoding given potentialMIMETypeForEncoding and request's no-cors JavaScript fallback encoding.