<?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>26829</bug_id>
          
          <creation_ts>2014-09-17 04:50:21 +0000</creation_ts>
          <short_desc>MediaKeys.create()&apos;s spec mentions an unassociated media element</short_desc>
          <delta_ts>2014-09-19 16:34:16 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Pearce">cpearce</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>ddorwin</cc>
    
    <cc>mike</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>111662</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Pearce">cpearce</who>
    <bug_when>2014-09-17 04:50:21 +0000</bug_when>
    <thetext>Step 3 of the MediaKeys.create() function&apos;s specification [https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-create] says:

&quot;If keySystem is not supported or not allowed on the origin of the media element&apos;s Document, return a promise rejected with a new DOMException whose name is &quot;NotSupportedError&quot;.&quot;

This mentions a media element, but the MediaKeys is not yet associated with a media element at this stage; the MediaKeys object does not even exist yet!

Perhaps that should be:

&quot;If keySystem is not supported or not allowed in the origin of calling context&apos;s Document...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111808</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-09-19 16:34:16 +0000</bug_when>
    <thetext>Thanks for the report and suggestion. https://dvcs.w3.org/hg/html-media/rev/d4cd783f02b3 changes it to:

If keySystem is not supported or not allowed in the origin of the calling context&apos;s Document, return a promise rejected with a new DOMException whose name is &quot;NotSupportedError&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>