<?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>21150</bug_id>
          
          <creation_ts>2013-02-28 06:34:10 +0000</creation_ts>
          <short_desc>Changing duration while updating should fail</short_desc>
          <delta_ts>2013-03-04 19:39:37 +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>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Adrian Bateman [MSFT]">adrianba</reporter>
          <assigned_to name="Aaron Colwell (c)">acolwell</assigned_to>
          <cc>acolwell</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>83817</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2013-02-28 06:34:10 +0000</bug_when>
    <thetext>Changing the duration while an append or remove is pending should not be allowed. One specific problem is that reducing the duration relies on a remove operation, which can&apos;t be started if we are already in an updating situation.

We think that an INVALID_STATE_ERR exception should be thrown before step 2 in 2.4.6 Duration change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83946</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-03-04 17:27:56 +0000</bug_when>
    <thetext>As far as I can tell, duration changes triggered by the JavaScript are already blocked by pending appends.

- Step 3 on the duration setter algorithm prevents setting during append.(https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-MediaSource-duration)

- The duration change triggered by endOfStream() is protected by Step 2 in that algorithm. (https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-MediaSource-endOfStream-void-EndOfStreamError-error)

I believe all other duration change calls are the result of algorithms run during an append so I believe it should be ok. Am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83956</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2013-03-04 19:39:37 +0000</bug_when>
    <thetext>You&apos;re right - we missed it just focusing on reviewing the algorithm section.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>