<?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>27559</bug_id>
          
          <creation_ts>2014-12-10 22:50:53 +0000</creation_ts>
          <short_desc>Clarify TrackDefaultList ctor for shallow vs deep copy of trackDefaults parameter</short_desc>
          <delta_ts>2014-12-11 18:49:09 +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="Matt Wolenetz">wolenetz</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>116115</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Wolenetz">wolenetz</who>
    <bug_when>2014-12-10 22:50:53 +0000</bug_when>
    <thetext>TrackDefaultList constructor takes a sequence&lt;TrackDefault&gt; parameter named trackDefaults.
After enforcing uniqueness of &lt;type,byteStreamTrackID&gt; within trackDefaults, the spec says to:
&quot;2. Store a copy of trackDefaults in this new object so the values can be returned by the accessor methods.&quot;

The spec is unclear whether a shallow or deep copy of the TrackDefault objects within trackDefaults is required.

Since TrackDefault exposes no mutator methods, a shallow copy should suffice (it would not allow apps to violate the &lt;type,byteStreamTrackID&gt; uniqueness constraint previously enforced in the TrackDefaultList ctor.)

The type of copy is app-visible, hence this bug to clarify the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116160</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-12-11 18:49:09 +0000</bug_when>
    <thetext>Change committed...
https://github.com/w3c/media-source/commit/9c3c5aeb3ab8a96dead9e7abb06cbd419bf8d648</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>