WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
264736
WebVTT Parser doesn't parse region id settings correctly
https://bugs.webkit.org/show_bug.cgi?id=264736
Summary
WebVTT Parser doesn't parse region id settings correctly
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
Add attachment
proposed patch, testcase, etc.
Kueno
Comment 1
2023-11-13 06:00:10 PST
Pull request:
https://github.com/WebKit/WebKit/pull/20413
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
<
rdar://problem/118551267
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug