<?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>16550</bug_id>
          
          <creation_ts>2012-03-28 00:22:54 +0000</creation_ts>
          <short_desc>Should sessionId checks in addKey() and cancelKeyRequest() be synchronous?</short_desc>
          <delta_ts>2012-08-17 06:05:20 +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>
          <dependson>16613</dependson>
          <blocked>16548</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-media</cc>
    
    <cc>public-html-wg-issue-tracking</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>66165</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-03-28 00:22:54 +0000</bug_when>
    <thetext>From v0.1:
Should this be handled {in the synchronous portion of the addKey() algorithm} or in the task scheduled in the next step. The advantage of handling it here is that what is likely a programming error is immediately and simply reported via an exception. The disadvantage is that the user agent must store session IDs (and track when they are released) for each Key System rather than letting the CDM manage them. This is inconsistent with the goal that the user agent should just pass information. This same issue also applies to cancelKeyRequest().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66166</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-03-28 00:26:38 +0000</bug_when>
    <thetext>The related text in the cancelKeyRequest() algorithm from v0.1 is:
Can this step^ be done synchronously or should a task be queued to do it in the background and a needkey event fired when done?

^ The step is:
Clear any internal state associated with the sessionId (or if this is null with the keySystem for this media element). This sessionId will now be unrecognized.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68930</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-06-11 23:57:37 +0000</bug_when>
    <thetext>I think this issue could be obsoleted if we removed sessionId parameters by encapsulating the session in an object as proposed in bug 16613.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72334</commentid>
    <comment_count>3</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-08-17 06:05:20 +0000</bug_when>
    <thetext>Addressed by the object-oriented API (bug 16613). addKey() and close() no longer have sessionId parameters to check.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>