<?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>26758</bug_id>
          
          <creation_ts>2014-09-08 20:14:37 +0000</creation_ts>
          <short_desc>Need a more robust way of preventing multiple MediaKeySession objects for persisted session data</short_desc>
          <delta_ts>2014-09-15 22:14:02 +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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <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>
    
    <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>111188</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-09-08 20:14:37 +0000</bug_when>
    <thetext>The spec currently says the user agent* should maintain a &quot;list of active session IDs.&quot; This is intended to prevent a persistent session from being loaded twice (or loaded after creation) so that the spec and implementations do not need to worry about multiple representations of the same session data. (This is very similar to the problems with reusing sessions as a way to optimize session creation or message generation.)

The problem is that the current text only addresses multiple sessions within the same DOM. The current text would not prevent loading the session in another browser, which is just as problematic. Thus, the limit must be global, at the same level as the persistent storage.

We should probably just move this responsibility to the CDM portion of the algorithm. The CDM already needs global (to the origin) synchronization to properly manage the persistent sessions. The app-facing behavior (rejecting load() with &quot;QuotaExceededError&quot;) would not change.

* It is specified for all implementations, but it should only really be required for implementations that intend to support persistent sessions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111268</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-09-09 15:18:09 +0000</bug_when>
    <thetext>I meant s/another browser/another browser tab/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111553</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-09-15 22:14:02 +0000</bug_when>
    <thetext>Implemented in https://dvcs.w3.org/hg/html-media/rev/03408a291076.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>