<?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>26313</bug_id>
          
          <creation_ts>2014-07-11 21:41:32 +0000</creation_ts>
          <short_desc>Steps for createSession should define what happens if the sessionType is not supported</short_desc>
          <delta_ts>2014-07-25 22:54:32 +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>Windows NT</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="Jerry Smith">jdsmith</reporter>
          <assigned_to name="Jerry Smith">jdsmith</assigned_to>
          <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>108872</commentid>
    <comment_count>0</comment_count>
    <who name="Jerry Smith">jdsmith</who>
    <bug_when>2014-07-11 21:41:32 +0000</bug_when>
    <thetext>loadSession is optional now, which means that session storage is as well.  Current createSession steps don&apos;t state what to do if sessionType is not supported.

Proposed add to under step 7.4.2 for createSession:

3.If the sessionType is not supported by the cdm, reject promise with a new DOMException whose name is &quot;NotSupportedError&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108873</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2014-07-11 21:50:51 +0000</bug_when>
    <thetext>Step 4 currently says:
If sessionType is not supported by the content decryption module corresponding to the keySystem, return a promise rejected with a new DOMException whose name is &quot;NotSupportedError&quot;.

I think that addresses this request. The only difference is that this happens synchronously vs. asynchronously as would be the case in 7.4.x. I think this is fine and consistent with other knowledge the UA must have about the CDM (initDataType support, etc.).

I suppose there might be scenarios where support cannot be known a priori. A CDM could always then report &quot;NotSupportedError&quot; in 7.7 in this scenario. I think it&apos;s nice to do parameter verification together in the synchronous steps, and this provides a quick and early escape for implementations that know they do not support a specific session type. (I can see this being even more useful if other session types are added.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109303</commentid>
    <comment_count>2</comment_count>
    <who name="Jerry Smith">jdsmith</who>
    <bug_when>2014-07-25 22:54:32 +0000</bug_when>
    <thetext>I agree this text is sufficient.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>