[Webkit-unassigned] [Bug 77951] Chrome crashes when attempting to add cue to track element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 11:18:32 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=77951





--- Comment #6 from Eric Carlson <eric.carlson at apple.com>  2012-02-10 11:18:32 PST ---
(In reply to comment #5)
> > No, the issue is that the TextTrackCueList is not allocated before it is used. Allocating it when the track is created is one option, allocating it just before it is used is another.
> 
> Spec says:
> The addTextTrack(kind, label, language) method of media elements, when invoked, must run the following steps:
> .....
> .....
> 4. Create a new TextTrack object.
> 
> 5. Create a new text track corresponding to the new object,
> ....and set its text track list of cues to an empty list...
> 
> http://www.whatwg.org/specs/web-apps/current-work/#dom-media-addtexttrack
> 
> So, IMO it should set to an empty list when text track is created.

We are splitting semantic hairs here, but "and set its text track list of cues to an empty list" it seems to me that 0 is a perfectly valid "empty list". The bug is that the current code tries to *use* the nil ("empty") list.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list