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:

  1. If response’s header list does not contain `Content-Range`, then return failure. @@ -3497,7 +3498,7 @@ run these steps:

  2. Append chunkBytes to bytes.

  3. -

    If bytes's length is greater than 1024, then: +

    If bytes's length is greater than 1024, then:

    1. Truncate bytes from the end so that it only contains 1024 bytes. @@ -3517,7 +3518,7 @@ run these steps:

    2. Set response's body's stream to the result of response's body's stream - piped through transformStream. + piped through transformStream.

  4. 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:

    1. Let responseBodyBytes be null. @@ -3550,7 +3551,7 @@ run these steps:

    2. Let processBodyError be this step: set responseBodyBytes to failure. -

    3. Fully read response's body given processBody +

    4. Fully read response's body given processBody and processBodyError.

    5. Wait for responseBodyBytes to be non-null. @@ -3569,7 +3570,7 @@ run these steps:

      given response's header list.
    6. -

      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.