Bug 262474 - TextTrackCue property mutation affect cue ordering
Summary: TextTrackCue property mutation affect cue ordering
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-02 00:22 PDT by Kueno
Modified: 2023-10-04 11:17 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kueno 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
Comment 1 Kueno 2023-10-02 00:36:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18488
Comment 2 EWS 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.
Comment 3 Radar WebKit Bug Importer 2023-10-04 11:17:17 PDT
<rdar://problem/116475605>