<?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>27240</bug_id>
          
          <creation_ts>2014-11-04 22:18:35 +0000</creation_ts>
          <short_desc>Fix TrackDefaultList constructor to throw an exception on any duplicate (type, byteStreamTrackID) pair</short_desc>
          <delta_ts>2014-11-05 14:43:44 +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="Aaron Colwell">acolwell</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>cyril.concolato</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>114519</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-11-04 22:18:35 +0000</bug_when>
    <thetext>Currently the TrackDefaultList constructor only throws an exception when multiple TrackDefault objects with the same type and an empty byteStreamTrackID are passed in. This leads to ambiguity in the track default kind/language/label algorithms when multiple defaults with the same type and byteStreamTrackID are present.

I propose that step 1 in the constructor be changed to the following:
&quot;If trackDefaults contains two or more TrackDefault objects with the same type and the same byteStreamTrackID, then throw an INVALID_ACCESS_ERR and abort these steps.&quot;

This should cover the original empty string case and prevent the ambiguous situation as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114531</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-11-04 23:16:07 +0000</bug_when>
    <thetext>Change committed...
https://dvcs.w3.org/hg/html-media/rev/0a76ec601ebf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>