This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27240 - Fix TrackDefaultList constructor to throw an exception on any duplicate (type, byteStreamTrackID) pair
Summary: Fix TrackDefaultList constructor to throw an exception on any duplicate (type...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: CR
Assignee: Aaron Colwell
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-04 22:18 UTC by Aaron Colwell
Modified: 2014-11-05 14:43 UTC (History)
3 users (show)

See Also:


Attachments

Description Aaron Colwell 2014-11-04 22:18:35 UTC
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:
"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."

This should cover the original empty string case and prevent the ambiguous situation as well.
Comment 1 Aaron Colwell 2014-11-04 23:16:07 UTC
Change committed...
https://dvcs.w3.org/hg/html-media/rev/0a76ec601ebf