[wpt-sync] Sync PR 36359 - fix(mimesniff): normalize input in isByteCompatible
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox108 fixed)
| Tracking | Status | |
|---|---|---|
| firefox108 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
94.45 KB,
text/plain
|
Details |
Sync web-platform-tests PR 36359 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36359
Details from upstream follow.
Marcos Casagrande <marcoscvp90@gmail.com> wrote:
fix(mimesniff): normalize input in isByteCompatible
This PR normalizes the header value before checking if it's invalid.
The test expects a
TypeErrorfor the following values
https://github.com/web-platform-tests/wpt/blob/5e9bb795bc7c57a07ee258f362e50c4014108530/mimesniff/mime-types/resources/generated-mime-types.json#L194-L201While those values are invalid headers, AFAIK the spec states that the header value should be normalized. Currently, those values can be appended to a Headers object in all browsers I've tested, and they get normalized to
x/and/x
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•