<?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>20622</bug_id>
          
          <creation_ts>2013-01-09 21:27:13 +0000</creation_ts>
          <short_desc>SessionID may be assigned asynchronously in MediaKeys.createSession</short_desc>
          <delta_ts>2013-10-29 00:41:09 +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>All</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>
          <dependson>20688</dependson>
    
    <dependson>21854</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Watson">watsonm</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>adrianba</cc>
    
    <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>81146</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2013-01-09 21:27:13 +0000</bug_when>
    <thetext>It&apos;s noted in createSession() step 4.2 that the session ID may be assigned by the CDM. It is also assigned by the CDM in the proposed method for retrieval of sessions associated with deleted keys (see https://www.w3.org/Bugs/Public/show_bug.cgi?id=17199).

This means the assignment of the sessionID may happen asynchronously.

I propose we specify that the sessionId may be null when the MediaKeySession is first created and MUST be assigned before the first event is fired on the MediaKeySession.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81149</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-01-09 21:36:15 +0000</bug_when>
    <thetext>Even ignoring bug 17199, there may be concern about synchronously generating the session ID in the CDM. It is nice to have a simple rule (sessionId is always valid), but I don&apos;t know how practical that is for implementations.

Barring that, maybe we can say it must be valid before the first event is fired at the object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85011</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-03-26 15:23:57 +0000</bug_when>
    <thetext>Agreed on in the 3/26 call. Mark to update the draft to state that session ID will be set before the first keymessage. In other words, it may be set asynchronously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86706</commentid>
    <comment_count>3</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-04-24 18:55:31 +0000</bug_when>
    <thetext>March 26th telecon minutes: http://www.w3.org/2013/03/26-html-media-minutes.html#item05

The discussion included discussion of state(s) and event(s). I think we should resolve the state/event discussion in bug 20688 before defining when sessionId is valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86745</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2013-04-24 22:46:59 +0000</bug_when>
    <thetext>I think that the &quot;initialized&quot; state that we discussed as part of the session life cycle discussion in the F2F might be the one where sessionID is established.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86921</commentid>
    <comment_count>5</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-04-27 00:55:38 +0000</bug_when>
    <thetext>The states and session life cycle are tracked in bug 21854. We will address this after or as part of that bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95382</commentid>
    <comment_count>6</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-10-26 01:02:33 +0000</bug_when>
    <thetext>I have changes to address this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95455</commentid>
    <comment_count>7</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-10-28 20:17:18 +0000</bug_when>
    <thetext>I made sessionID assignment asynchronous in https://dvcs.w3.org/hg/html-media/rev/cc4f10560960</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95503</commentid>
    <comment_count>8</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-10-29 00:41:09 +0000</bug_when>
    <thetext>More tweaks in https://dvcs.w3.org/hg/html-media/rev/7c4bb47218ce</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>