[wpt-sync] Sync PR 64502 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329737
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64502 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64502
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=329737
WebKit export from bug: Canonicalize incoming MIME types
<pre>
Canonicalize incoming MIME typesWebKit didn't canonicalize every MIME type it received. The soup backend didn't
lowercase them, and those from clients, as for loadData:MIMEType:, and from web
archives kept their case and parameters. Exact comparisons then failed, and
document.contentType exposed them as given.Have extractMIMETypeFromMediaType() lowercase, and use it where WebKit receives
other MIME types, such as from an NSURLResponse or a web archive. For data that
clients load, add ResourceResponse::responseForMIMEType(). A charset parameter
fills in a missing text encoding name. ResourceResponseBase now asserts that
MIME types are canonical, so TextResourceDecoder::contentTypeForMIMEType()
compares exactly, which resolves the FIXME from <a href="https://commits.webkit.org/324702@main">324702@main</a>.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=329737">https://bugs.webkit.org/show_bug.cgi?id=329737</a>
</pre>
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Comment 1•7 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=118579
| Assignee | ||
Comment 2•7 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 16 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 15[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 15[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 1
Safari
OK : 1
PASS: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
Tests Disabled in Gecko Infrastructure
Comment 4•4 days ago
|
||
| bugherder | ||
Description
•