Bug 262474

Summary: TextTrackCue property mutation affect cue ordering
Product: WebKit Reporter: Kueno <kohei.ueno119>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Kueno
Reported 2023-10-02 00:22:01 PDT
The ordering of the cues in TextTrack is defined as follows: > ... cues must be sorted by their start time, earliest first; then, any cues with the same start time must be sorted by their end time, latest first; and finally, any cues with identical end times must be sorted in the order they were last added ... > https://html.spec.whatwg.org/multipage/media.html#text-track-cue-order However, there is a current issue where mutating a property of a TextTracCue/VTTCue (expect for .startTime/.endTime) results in a rearrangement of cues, causing cues with identical start/end time to be resorted, then deviating from the intended order. The same issue in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=783779
Attachments
Kueno
Comment 1 2023-10-02 00:36:05 PDT
EWS
Comment 2 2023-10-04 11:16:36 PDT
Committed 268857@main (1e25aac1511a): <https://commits.webkit.org/268857@main> Reviewed commits have been landed. Closing PR #18488 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-10-04 11:17:17 PDT
Note You need to log in before you can comment on or make changes to this bug.