MediaRecorder.isTypeSupported not case insensitive
Categories
(Core :: Audio/Video: Recording, defect)
Tracking
()
People
(Reporter: me, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Steps to reproduce:
- Run
MediaRecorder.isTypeSupported("video/webm;codecs=VP8")
Actual results:
returns false
Expected results:
should have returned true, just like MediaRecorder.isTypeSupported("video/webm;codecs=vp8")
Mime types paramters are case-insensitive per RFC 2045
Comment 1•11 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Recording' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•11 months ago
|
||
Quoting RFC 2045 (emphasis mine):
All numeric and octet values are given in decimal notation in this
set of documents. All media type values, subtype values, and
parameter names as defined are case-insensitive. However, parameter
values are case-sensitive unless otherwise specified for the specific
parameter.
and it is not specified in any spec I know that this is to be parsed in a case-insensitive way. Other implementations match Firefox's behaviour.
Chrome doesn’t, it works just fine with VP8 (uppercase) and vp8 (lowercase) like I described in the first message
Description
•