Closed Bug 1906147 Opened 11 months ago Closed 11 months ago

MediaRecorder.isTypeSupported not case insensitive

Categories

(Core :: Audio/Video: Recording, defect)

Firefox 129
defect

Tracking

()

RESOLVED INVALID

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:

  1. 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

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.

Component: Untriaged → Audio/Video: Recording
Product: Firefox → Core

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.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Resolution: --- → INVALID

Chrome doesn’t, it works just fine with VP8 (uppercase) and vp8 (lowercase) like I described in the first message

You need to log in before you can comment on or make changes to this bug.