| Summary: | Empty files should not succeed in loading (as WebVTT) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | annevk, destra, eric.carlson, jer.noble, karlcow, kohei.ueno119, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, WPTImpact |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://wpt.live/webvtt/parsing/file-parsing/signature-invalid.html | ||
| Bug Depends on: | 179370 | ||
| Bug Blocks: | |||
|
Description
Ahmad Saleem
2023-08-18 14:43:09 PDT
NOTE - Doing 1-1 Blink Merge leads to two WPT regressions: html/semantics/embedded-content/media-elements/track/track-element /track-add-remove-cue.html and html/semantics/embedded-content/media-elements/track/track-element/track-text-track-cue-list.html ___ PR attempt: https://github.com/WebKit/WebKit/pull/16863 ____ NOTE: We should sync 'webvtt' and look into why the tests are timing out and fix it. Still investigating but closing my PR for time being. I was thinking of fixing this in TextTrackLoader::notifyFinished by changing
if (m_cueParser)
m_cueParser->fileFinished();
to
if (m_cueParser)
m_cueParser->fileFinished();
else
m_state = Failed;
but I'm not sure if that would similarly regress tests.
However, looking closely at your commit it seems that WebKit would still invoke processNewCueData for the non-Failed states whereas Chromium would not (at least not at that point in time).
Syncing webvtt WPT is probably a good next step here. I can maybe do that today between meetings.
@Ahmad Saleem @Anne van Kesteren Are you working on this issue? If not, I'd be happy to take it over. (In reply to Kueno from comment #4) > @Ahmad Saleem @Anne van Kesteren > > Are you working on this issue? If not, I'd be happy to take it over. I am not. Go ahead and take it. You are doing amazing job!! We all really appreciate it. Pull request: https://github.com/WebKit/WebKit/pull/19401 Committed 269646@main (d40154a4fe8f): <https://commits.webkit.org/269646@main> Reviewed commits have been landed. Closing PR #19401 and removing active labels. |