<?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>26345</bug_id>
          
          <creation_ts>2014-07-15 23:02:06 +0000</creation_ts>
          <short_desc>[MSE] order of activeSourceBuffers underspecified</short_desc>
          <delta_ts>2014-07-24 20:13:34 +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>PC</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>CR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jer Noble">jer.noble</reporter>
          <assigned_to name="Aaron Colwell">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>108975</commentid>
    <comment_count>0</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-07-15 23:02:06 +0000</bug_when>
    <thetext>2.1 Attributes, activeSourceBuffers
&quot;activeSourceBuffers of type SourceBufferList, readonly
Contains the subset of sourceBuffers that are providing the selected video track, the enabled audio track(s), and the &quot;showing&quot; or &quot;hidden&quot; text track(s).&quot;

The order of entries in the SourceBufferList are underspecified. Intuitively, activeSourceBuffers should have the same order as sourceBuffers, but a naive implementation may order them depending on what SourceBuffer reached a &quot;Add the SourceBuffer to activeSourceBuffers&quot; step first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109249</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-07-24 17:46:54 +0000</bug_when>
    <thetext>Why does order matter here? I don&apos;t particulary object to mandating that the order match sourceBuffers, but I don&apos;t really understand why it matters. Won&apos;t the application always have to manually inspect the lists if sourceBuffers.length != activeSourceBuffers.length? Why let the application treat the == case differently?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109251</commentid>
    <comment_count>2</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-07-24 17:50:47 +0000</bug_when>
    <thetext>(In reply to Aaron Colwell from comment #1)
&gt; Why does order matter here? 

Well, honestly, because WebKit&apos;s implementation fails some of the proposed W3C Media Source testsuite tests which expect a particular order.  Specifically, the mediasource-buffered.html will fail if the order of activeSourceBuffers is not the same as sourceBuffers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109252</commentid>
    <comment_count>3</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-07-24 17:53:09 +0000</bug_when>
    <thetext>Also, the general trend toward array-like objects in W3C specs, and particularly in the Text Track specs, has been to give those arrays an explicit, deterministic order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109253</commentid>
    <comment_count>4</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-07-24 17:58:44 +0000</bug_when>
    <thetext>Ok. Fair enough. I&apos;ll make the change. Thanks for your input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109263</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-07-24 20:13:34 +0000</bug_when>
    <thetext>Change committed.
https://dvcs.w3.org/hg/html-media/rev/13056a200b38</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>