Skip to content

[Gecko Bug 1537554] part3 : do not collect negative length cue for other cues.#16152

Merged
moz-wptsync-bot merged 1 commit intomasterfrom
gecko/1537554
Apr 3, 2019
Merged

[Gecko Bug 1537554] part3 : do not collect negative length cue for other cues.#16152
moz-wptsync-bot merged 1 commit intomasterfrom
gecko/1537554

Conversation

@moz-wptsync-bot
Copy link
Collaborator

Cue might have negative length because user can set cue's end time via TextTrackCue's API and the spec doesn't have strong restriction that the end time should be equal or larger than the start time of the cue.

As the negative length cue won't be displayed, we have no need to add it to the other cues.

[1] https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-endtime

Differential Revision: https://phabricator.services.mozilla.com/D24857

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1537554
gecko-commit: c49d99af4cadaeaac4e8f3f3c3247698e3dca583
gecko-integration-branch: central
gecko-reviewers: jya

Cue might have negative length because user can set cue's end time via `TextTrackCue`'s API and the spec doesn't have strong restriction that the end time should be equal or larger than the start time of the cue.

As the negative length cue won't be displayed, we have no need to add it to the `other cues`.

[1] https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-endtime

Differential Revision: https://phabricator.services.mozilla.com/D24857

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1537554
gecko-commit: c49d99af4cadaeaac4e8f3f3c3247698e3dca583
gecko-integration-branch: central
gecko-reviewers: jya
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

@moz-wptsync-bot moz-wptsync-bot merged commit 941599c into master Apr 3, 2019
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1537554 branch April 3, 2019 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants