[Bug 27559] New: Clarify TrackDefaultList ctor for shallow vs deep copy of trackDefaults parameter

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27559

            Bug ID: 27559
           Summary: Clarify TrackDefaultList ctor for shallow vs deep copy
                    of trackDefaults parameter
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
          Assignee: adrianba@microsoft.com
          Reporter: wolenetz@google.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

TrackDefaultList constructor takes a sequence<TrackDefault> parameter named
trackDefaults.
After enforcing uniqueness of <type,byteStreamTrackID> within trackDefaults,
the spec says to:
"2. Store a copy of trackDefaults in this new object so the values can be
returned by the accessor methods."

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 <type,byteStreamTrackID> uniqueness
constraint previously enforced in the TrackDefaultList ctor.)

The type of copy is app-visible, hence this bug to clarify the spec.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 10 December 2014 22:50:55 UTC