Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Issue 59453002: Add a flushing mechanism for the WebVTTParser (Closed)

Created:
7 years, 1 month ago by fs
Modified:
7 years, 1 month ago
CC:
blink-reviews, nessy, philipj_slow, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, vcarbune.chromium, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add a flushing mechanism for the WebVTTParser In the WebVTT parser there's an ad-hoc "end-of-stream" check for when a pending cue should be flushed from the parser. The condition used however is not reliable given multiple buffers. To rectify this, add a flush() method to WebVTTParser, and call it from TextTrackLoader::notifyFinished. Then let this new flush() method take care of flushing any pending cue from the parser. BUG=231460 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161519

Patch Set 1 #

Patch Set 2 : With Testcase #

Patch Set 3 : Force LF on TC #

Patch Set 4 : Even more binary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -6 lines) Patch
M LayoutTests/.gitattributes View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/http/tests/media/track/track-webvtt-slow-loading.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/track/track-webvtt-slow-loading-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
A + LayoutTests/media/track/captions-webvtt/captions-multiline-lf.vtt View 1 2 3 Binary file 0 comments Download
M Source/core/html/track/WebVTTParser.h View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/html/track/WebVTTParser.cpp View 5 chunks +20 lines, -5 lines 0 comments Download
M Source/core/loader/TextTrackLoader.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
fs
7 years, 1 month ago (2013-11-05 09:31:43 UTC) #1
jochen (gone - plz use gerrit)
can you add a test for this?
7 years, 1 month ago (2013-11-05 10:46:22 UTC) #2
fs
On 2013/11/05 10:46:22, jochen wrote: > can you add a test for this? It would ...
7 years, 1 month ago (2013-11-05 12:33:26 UTC) #3
fs
Testcase added. PTAL.
7 years, 1 month ago (2013-11-05 14:46:29 UTC) #4
jochen (gone - plz use gerrit)
lgtm, thanks
7 years, 1 month ago (2013-11-05 14:50:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/59453002/60001
7 years, 1 month ago (2013-11-05 14:58:51 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=15586
7 years, 1 month ago (2013-11-05 17:13:46 UTC) #7
fs
On 2013/11/05 17:13:46, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 1 month ago (2013-11-05 18:01:44 UTC) #8
fs
Attempted to prevent EOL normalization on Windows. PTAL again.
7 years, 1 month ago (2013-11-06 07:52:45 UTC) #9
jochen (gone - plz use gerrit)
still lgtm
7 years, 1 month ago (2013-11-06 08:23:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/59453002/210001
7 years, 1 month ago (2013-11-06 08:32:24 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=15844
7 years, 1 month ago (2013-11-06 10:26:19 UTC) #12
fs
Made the VTT appear binary, maybe now...
7 years, 1 month ago (2013-11-06 12:18:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/59453002/310002
7 years, 1 month ago (2013-11-07 09:11:08 UTC) #14
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 10:21:00 UTC) #15
Message was sent while issue was closed.
Change committed as 161519

Powered by Google App Engine
This is Rietveld 408576698