diff --git a/fetch.bs b/fetch.bs index 2d3c30e90..1e22c4c93 100644 --- a/fetch.bs +++ b/fetch.bs @@ -3328,8 +3328,7 @@ and a response response, is to run these steps:
  • If response's status is 206 and mimeType is an opaque-response-blocklisted MIME type, then return false. -

  • If nosniff is true and mimeType is an - opaque-response-blocklisted MIME type or its essence is +

  • If nosniff is true and mimeType's essence is "text/plain", then return false. @@ -3461,6 +3460,7 @@ run these steps:


    +

    To obtain a copy of the first 1024 bytes of response, given a response response, run these steps: @@ -3522,9 +3522,11 @@ run these steps:

  • Return first1024Bytes. +
    +

    To determine if response is JavaScript and not JSON given a response response, run these steps:

    @@ -3580,6 +3582,7 @@ run these steps:

  • Return false. +

    New MIME type sets

    @@ -3598,12 +3601,14 @@ run these steps:

    whose essence is one of: @@ -5638,9 +5649,15 @@ these steps: HTTP-network-or-cache fetch given fetchParams.
  • If request's response tainting is "opaque", - response's status is not a redirect status, and the - opaque-response-safelist check given request and response returns - false, then return a network error. + response's status is not a redirect status, then + +

      +
    1. If request's initiator type is "fetch", + then set internalResponse's body to null. + +

    2. Otherwise, if opaque-response-safelist check given request and response returns + false, then return a network error. +

  • If request's response tainting is "cors" and the CORS check for request and response returns failure, then return