[wpt-sync] Sync PR 62850 - script,webvtt: Implement `GetCueAsHTML`
Categories
(Core :: Audio/Video: Playback, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62850 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62850
Details from upstream follow.
Tim van der Lippe <tvanderlippe@gmail.com> wrote:
script,webvtt: Implement
GetCueAsHTMLThis implements the cue text parsing algorithm as well as the DOM construction
algorithm that maps the tree of WebVTT nodes to DOM nodes.There are two commits, to make reviewing easier. The first commit only moves
code without any functional changes. That is to make it possible to implement
the relevant logic, as some of the functions inwebvtt/lib.rswere also required.The second commit implements the actual algorithms. It introduces an iterator
to make it possible to iterate through the tree of nodes. To make it possible
to move back to a parent, weak pointers are used for parents while strong
pointers are used for children. That way, the whole structure can be garbage
collected, but still traversed through.Part of #<!-- nolink -->22314
Testing: new WPT tests passing and multiple new unit tests
Reviewed in servo/servo#48146
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=95553
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 13 tests and 2 subtests
Status Summary
Firefox
OK : 1[GitHub] 13[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 13[GitHub] 35[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 2[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 14
Safari
OK : 1
PASS: 14
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /webvtt/api/VTTCue/getCueAsHTML.html [wpt.fyi]
- VTTCue.getCueAsHTML(), <v Foo&Bar>:
FAIL
- VTTCue.getCueAsHTML(), <v Foo&Bar>:
New Tests That Don't Pass
- /webvtt/api/VTTCue/constructor.html [wpt.fyi]
- VTTCue(), unbounded end time:
FAIL
- VTTCue(), unbounded end time:
- /webvtt/api/VTTCue/getCueAsHTML.html [wpt.fyi]
- VTTCue.getCueAsHTML(), <v Foo&Bar>:
FAIL(Chrome:PASS, Safari:PASS)
- VTTCue.getCueAsHTML(), <v Foo&Bar>:
Comment 4•2 months ago
|
||
| bugherder | ||
Comment 5•2 months ago
|
||
| bugherder | ||
Description
•