Bug 153294 - MediaKeys.createSession doesn't do case-insensitive comparison of mime type
Summary: MediaKeys.createSession doesn't do case-insensitive comparison of mime type
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 153266
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-20 16:58 PST by Ryosuke Niwa
Modified: 2023-10-13 06:41 PDT (History)
4 users (show)

See Also:


Attachments
Test demonstrating the problem (605 bytes, text/html)
2016-01-20 16:59 PST, Ryosuke Niwa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2016-01-20 16:58:52 PST
createSession should be ignoring cases just like all other functions that check MIME types.
This results in (new WebKitMediaKeys('com.apple.fps.2_0')).createSession('KeyRelease', new Uint8Array(1))
throwing an exception instead of creating a session object.
Comment 1 Ryosuke Niwa 2016-01-20 16:59:28 PST
Created attachment 269405 [details]
Test demonstrating the problem
Comment 2 Darin Adler 2016-01-20 17:22:38 PST
OK, I’ll fix this soon, maybe tonight.
Comment 3 Ryosuke Niwa 2016-01-20 17:26:04 PST
(In reply to comment #2)
> OK, I’ll fix this soon, maybe tonight.

So I think the test needs to be checked into the internal repo since this feature isn't enabled on some machines.
Comment 4 Darin Adler 2016-01-24 17:20:30 PST
I’ll fix this but someone else has to check in the test somewhere first. I talked to Jer about that.
Comment 5 Ahmad Saleem 2023-10-12 13:36:08 PDT
Is this still applicable?
Comment 6 Darin Adler 2023-10-13 06:41:13 PDT
I think it is.