Bug 264736

Summary: WebVTT Parser doesn't parse region id settings correctly
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   
See Also: https://github.com/web-platform-tests/wpt/pull/43174

Kueno
Reported 2023-11-13 05:54:02 PST
The current WebVTT parser incorrectly interprets the region id setting string `'id: foo'` as a region with an id of `''`. However, this behavior deviates from the specification. According to the spec, the parser should initially split the input string based on spaces. If the first `':'` in a setting string is either the first or last character of that string, it should proceed to the next string. In the case of `'id: foo'`, it should be parsed as `'id:'` and `'foo'`, both of which are considered invalid id strings. WPT: https://wpt.fyi/results/webvtt/parsing/file-parsing/tests/regions-id.html?label=experimental&label=master&aligned
Attachments
Kueno
Comment 1 2023-11-13 06:00:10 PST
Kueno
Comment 2 2023-11-15 06:15:12 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/43174
EWS
Comment 3 2023-11-16 23:48:28 PST
Committed 270868@main (30dd17f24fc4): <https://commits.webkit.org/270868@main> Reviewed commits have been landed. Closing PR #20413 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2023-11-16 23:49:14 PST
Note You need to log in before you can comment on or make changes to this bug.