<?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>25267</bug_id>
          
          <creation_ts>2014-04-04 21:39:21 +0000</creation_ts>
          <short_desc>Remove ability for in-memory sessions to be re-used</short_desc>
          <delta_ts>2014-04-21 23:11:17 +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>25268</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-media</cc>
    
    <cc>steele</cc>
    
    <cc>watsonm</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>103437</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-04-04 21:39:21 +0000</bug_when>
    <thetext>The outcome of bug 21855 was to allow implementations to avoid firing a message event if there is already an in-memory session, possibly already containing a license, for the provided initData.

This was actually implemented as part of the state machine [1], and a clarification was later added to indicate that the sessions must still appear distinct [2].

I think such behavior causes inconsistent and unexpected behavior for applications. I think EME should not allow such *optional* in-memory sharing. Instead, we should try to really solve the underlying problem (redundant needkey events) and/or make the behavior explicit (i.e. adding another value to bug 25200).

The changes to the spec would be:
 A. Remove the note added in [2].
 B. Require a message event when creating a session unless otherwise specified.

There might be use cases for not firing a message when creating a session, but I don&apos;t think they are currently explicitly supported. We can re-evaluate the related algorithms when enabling such use cases.

[1] https://dvcs.w3.org/hg/html-media/rev/83629aec22e1
[2] https://dvcs.w3.org/hg/html-media/rev/cba144274140</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103439</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-04-04 21:46:32 +0000</bug_when>
    <thetext>The underlying problem is tracked as bug 25268.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103441</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-04-04 22:08:08 +0000</bug_when>
    <thetext>Also, as discussed at the time, it seems difficult to define or implement this behavior in a way that still allows the &quot;MediaKeySession instances [to] appear distinct&quot; as is stated in [2].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103484</commentid>
    <comment_count>3</comment_count>
    <who name="Joe Steele">steele</who>
    <bug_when>2014-04-07 16:32:26 +0000</bug_when>
    <thetext>(In reply to David Dorwin from comment #2)
&gt; Also, as discussed at the time, it seems difficult to define or implement
&gt; this behavior in a way that still allows the &quot;MediaKeySession instances [to]
&gt; appear distinct&quot; as is stated in [2].

If your proposal for bug 25199 is accepted, it looks like this problem will go away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103488</commentid>
    <comment_count>4</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-04-07 17:25:54 +0000</bug_when>
    <thetext>(In reply to Joe Steele from comment #3)
&gt; (In reply to David Dorwin from comment #2)
&gt; &gt; Also, as discussed at the time, it seems difficult to define or implement
&gt; &gt; this behavior in a way that still allows the &quot;MediaKeySession instances [to]
&gt; &gt; appear distinct&quot; as is stated in [2].
&gt; 
&gt; If your proposal for bug 25199 is accepted, it looks like this problem will
&gt; go away.

Not necessarily. I was referring to the underlying state, not just the reporting of results. For example, if one session is release()&apos;d, how does that affect the other session in a way that makes sense while still allowing the sessions to &quot;appear distinct&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104136</commentid>
    <comment_count>5</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-04-21 23:11:17 +0000</bug_when>
    <thetext>The resolution of bug 25268 (all implementations check for existing sessions) addresses the original use case and makes the associated text obsolete.

The text is removed in https://dvcs.w3.org/hg/html-media/rev/a91faf82b9b5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>