diff --git a/fetch.bs b/fetch.bs index 932f65151..3accfd774 100644 --- a/fetch.bs +++ b/fetch.bs @@ -3093,9 +3093,19 @@ and a response response, is to run these steps:
If there is an exception, response is not JSON. If there is not, it is. +
Let potentialMIMETypeForEncoding be the result of extracting a MIME type + given response's header list. + +
Let encoding be the result of legacy extracting an encoding given + potentialMIMETypeForEncoding and request's + no-cors JavaScript fallback encoding. + +
Equivalently to fetch a classic script, this ignores the + MIME type essence. +
Let sourceText be the result of decoding - responseBodyBytes given request's - no-cors JavaScript fallback encoding. + responseBodyBytes given encoding.
If ParseText(sourceText, Script) returns a Script Record, then return true.