Closed Bug 1450304 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 10254 - Make CORB MIME type classification consistent with the web specs.

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10254 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/10254
Details from upstream follow.

Lukasz Anforowicz <lukasza@chromium.org> wrote:
>  Make CORB MIME type classification consistent with the web specs.
>  
>  https://tools.ietf.org/html/rfc7303 says that if "new media type is
>  introduced for an XML-based format, the name of the media type SHOULD
>  end with '+xml'".
>  
>  https://tools.ietf.org/html/rfc6839 covers '+xml' and '+json' suffixes.
>  
>  https://mimesniff.spec.whatwg.org/#xml-mime-type says "An XML MIME type
>  is any MIME type whose subtype ends in '+xml' or whose essence is
>  'text/xml' or 'application/xml'. [RFC7303]".
>  
>  https://mimesniff.spec.whatwg.org/#json-mime-type says "A JSON MIME type
>  is any MIME type whose subtype ends in '+json' or whose essence is
>  'application/json' or 'text/json'."
>  
>  There are no occurences of "application/xml+", "text/xml+",
>  "application/json+", "text/json+" or "text/x-json" in the specs above
>  and on various lists of MIME types like:
>  -
>  https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
>  - https://en.wikipedia.org/wiki/Media_type
>  - https://www.freeformatter.com/mime-types-list.html
>  - https://www.sitepoint.com/mime-types-complete-list/
>  
>  Bug: 826756
>  Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
>  Change-Id: Ied30f9728bd4f082bb620fea150f342457ea4833
>  Reviewed-on: https://chromium-review.googlesource.com/985211
>  WPT-Export-Revision: d0db50532a6faf086e278488bff3c0db452d8fc9
Component: web-platform-tests → DOM
Product: Testing → Core
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/022e65717ac8
[wpt PR 10254] - Make CORB MIME type classification consistent with the web specs., a=testonly
https://hg.mozilla.org/mozilla-central/rev/022e65717ac8
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.