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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24213</bug_id>
          
          <creation_ts>2014-01-06 18:17:09 +0000</creation_ts>
          <short_desc>MediaKeyNeededEvent&apos;s &quot;type&quot; attribute conflicts with Event&apos;s &quot;type&quot; attribute</short_desc>
          <delta_ts>2014-01-07 17:19:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Encrypted Media Extensions</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>mike</cc>
    
    <cc>ppergame</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98034</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-01-06 18:17:09 +0000</bug_when>
    <thetext>The current definition of MediaKeyNeededEvent [1] includes an attribute named &quot;type&quot;, which provides the value to pass to createSession()&apos;s &quot;type&quot; parameter [2]. The problem is that Event [3], which MediaKeyNeededEvent inherits from, also has a &quot;type&quot; attribute that means something very different.

We need to rename the &quot;type&quot; attribute on MediaKeyNeededEvent and probably the createSession() parameter as well for consistency.

Background:
* &quot;type&quot; was originally selected as the parameter name because it is similar to the same parameter in canPlayType().
* The &quot;type&quot; attribute was later added in bug 19096.

[1] https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-mediakeyneededevent
[2] https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-createsession
[3] https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98039</commentid>
    <comment_count>1</comment_count>
    <who name="Pavel Pergamenshchik">ppergame</who>
    <bug_when>2014-01-06 20:14:43 +0000</bug_when>
    <thetext>How about &quot;mimeType&quot;?

isTypeSupported takes a &quot;type&quot; as well, if we are going for overall consistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98088</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2014-01-07 16:23:32 +0000</bug_when>
    <thetext>I propose we use contentType, since this matches the header. I think it is okay to rename the arguments too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98094</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2014-01-07 17:19:41 +0000</bug_when>
    <thetext>Fixed: https://dvcs.w3.org/hg/html-media/rev/1cbd047358a4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>