<?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>20338</bug_id>
          
          <creation_ts>2012-12-11 07:25:21 +0000</creation_ts>
          <short_desc>Explicitly specify whether initData is required for Clear Key</short_desc>
          <delta_ts>2013-05-24 23:39:45 +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>WONTFIX</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>
          <dependson>20691</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <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>79902</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-12-11 07:25:21 +0000</bug_when>
    <thetext>The type and initData parameters to createSession() are optional [1]. The Clear Key section [2] says what initData should be but not whether it is required. This section should explicitly state that it is required or optional.

While there is no real reason to require it, it may make implementations easier if they can just return an error immediately rather than having to implement handle the case where initData is not provided. In addition, Clear Key is unlikely to be used in scenarios where initData may not be desired. The only real use case would seem to be to create a session without any knowledge of the media and then immediately call addKey() with a key, possibly without contacting a server.

See also bug 19810, which proposes requiring key IDs, which are related to initData, in the licenses provided to addKey().

To be most compatible, maybe the text should say initData is required for containers that support it.

[1] http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#dom-createsession
[2] http://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#simple-decryption-clear-key</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86615</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-04-23 20:31:12 +0000</bug_when>
    <thetext>As agreed in the the February 5th telecon, initData will be required for Clear Key.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87298</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-05-06 23:55:53 +0000</bug_when>
    <thetext>This is moot if we decide that initData is always required (issue 20691).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88218</commentid>
    <comment_count>3</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-05-24 23:39:45 +0000</bug_when>
    <thetext>Bug 20691 was resolved by making both createSession() parameters required. Thus, this is no longer an issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>