<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>153294</bug_id>
          
          <creation_ts>2016-01-20 16:58:52 -0800</creation_ts>
          <short_desc>MediaKeys.createSession doesn&apos;t do case-insensitive comparison of mime type</short_desc>
          <delta_ts>2023-10-13 06:41:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>153266</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>darin</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1157119</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-01-20 16:58:52 -0800</bug_when>
    <thetext>createSession should be ignoring cases just like all other functions that check MIME types.
This results in (new WebKitMediaKeys(&apos;com.apple.fps.2_0&apos;)).createSession(&apos;KeyRelease&apos;, new Uint8Array(1))
throwing an exception instead of creating a session object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157121</commentid>
    <comment_count>1</comment_count>
      <attachid>269405</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-01-20 16:59:28 -0800</bug_when>
    <thetext>Created attachment 269405
Test demonstrating the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157132</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-01-20 17:22:38 -0800</bug_when>
    <thetext>OK, I’ll fix this soon, maybe tonight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157136</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2016-01-20 17:26:04 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; 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&apos;t enabled on some machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1158175</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-01-24 17:20:30 -0800</bug_when>
    <thetext>I’ll fix this but someone else has to check in the test somewhere first. I talked to Jer about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984702</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-12 13:36:08 -0700</bug_when>
    <thetext>Is this still applicable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984868</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2023-10-13 06:41:13 -0700</bug_when>
    <thetext>I think it is.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>269405</attachid>
            <date>2016-01-20 16:59:28 -0800</date>
            <delta_ts>2016-01-20 16:59:28 -0800</delta_ts>
            <desc>Test demonstrating the problem</desc>
            <filename>media-keys-createSession-mime-type-case.html</filename>
            <type>text/html</type>
            <size>605</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KPHA+VGVzdCB0aGF0IE1lZGlhS2V5cy5jcmVh
dGVTZXNzaW9uIGRvZXMgYSBjYXNlIGluc2Vuc2l0aXZlIGNvbXBhcmlzb24gb2YgTUlNRSB0eXBl
LjwvcD4KPHByZSBpZD0ibG9nIj48L3ByZT4KPHNjcmlwdD4KCnZhciBmcHMyMCA9IG5ldyBXZWJL
aXRNZWRpYUtleXMoJ2NvbS5hcHBsZS5mcHMuMl8wJyk7CgpmdW5jdGlvbiB0ZXN0KG1pbWVUeXBl
KSB7CiAgICB2YXIgZXJyb3IgPSAnJzsKICAgIHRyeSB7CiAgICAgICAgdmFyIHNlc3Npb24gPSBm
cHMyMC5jcmVhdGVTZXNzaW9uKG1pbWVUeXBlLCBuZXcgVWludDhBcnJheSgxKSk7ICAgICAgICAK
ICAgIH0gY2F0Y2ggKGV4Y2VwdGlvbikgewogICAgICAgIGVycm9yID0gJyAtICcgKyBleGNlcHRp
b247CiAgICB9CgogICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2xvZycpLnRleHRDb250ZW50
ICs9IGAke3Nlc3Npb24gPyAnUEFTUycgOiAnRkFJTCd9OiAke21pbWVUeXBlfSR7ZXJyb3J9XG5g
Owp9Cgp0ZXN0KCdrZXlyZWxlYXNlJyk7CnRlc3QoJ0tFWVJFTEVBU0UnKTsKdGVzdCgnS2V5UmVs
ZWFzZScpOwoKPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>