Re: [whatwg/fetch] Return a `content-encoding` header for resource timing and more (PR #1796)

noamr left a comment (whatwg/fetch#1796)

> I think there's a couple of problems here still:
> 
> 1. "extracting header list values" is not a well-defined algorithm and I doubt it's interoperable. So just taking its return value and exposing it without it being fixed seems problematic.
> 2. The return values are not filtered. This creates a new communication channel. That's why we added minimized the set of MIME types exposed: https://mimesniff.spec.whatwg.org/#minimize-a-supported-mime-type
> 3. The tests don't match what is specified, e.g., 'Unrecognized content encoding value should be transformed to "unknown".' is not specified here.

(2) and (3) are specified in resource-timing, I think it's OK to move them here but I don't have a strong opinion about that.

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

Message ID: <whatwg/fetch/pull/1796/c2687963135@github.com>

Received on Thursday, 27 February 2025 13:27:46 UTC