Re: [whatwg/fetch] Should `processResponse` also receive the internal response, similar to `processResponseConsumeBody`? (Issue #1664)

Gotcha, makes sense. I can make an issue in the HTML spec repo to use the unsafe response in HTMLMediaElement if that helps :)

Re: #1661, if the first argument is the filtered response, I think we won't be able to check its status code? [Opaque filtered responses](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) always have a status code of 0, so when we check if it is an "OK" status in e.g. [HTMLLinkElement's fetch](https://html.spec.whatwg.org/multipage/semantics.html#fetching-and-processing-a-resource-from-a-link-element:concept-response-status), we will see a response status of 0 and drop the response. So HTMLLinkElement would need to poke at the unsafe response as well.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1664#issuecomment-1564881970
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1664/1564881970@github.com>

Received on Friday, 26 May 2023 20:06:01 UTC