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

Issue 64303004: Handle buffer boundaries in the WebVTT parser (Closed)

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

Description

Handle buffer boundaries in the WebVTT parser Replace the somewhat ad-hoc collectNextLine method with a new helper class - BufferedLineReader - that takes care of buffering the input data across buffer boundaries. While redoing the line collection, also fix the handling of NULs in the input stream to match the spec (transform to U+FFFD). TEST=unittest:BufferedLineReader.* TEST=http/tests/media/track/track-webvtt-slow-loading-2.html BUG=231460 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161624

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review issues addressed #

Patch Set 3 : Fix compilation warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -36 lines) Patch
A + LayoutTests/http/tests/media/track/track-webvtt-slow-loading-2.html View 2 chunks +3 lines, -3 lines 0 comments Download
A + LayoutTests/http/tests/media/track/track-webvtt-slow-loading-2-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
A Source/core/html/track/BufferedLineReader.h View 1 1 chunk +88 lines, -0 lines 0 comments Download
A Source/core/html/track/BufferedLineReader.cpp View 1 1 chunk +104 lines, -0 lines 0 comments Download
A Source/core/html/track/BufferedLineReaderTest.cpp View 1 2 1 chunk +292 lines, -0 lines 0 comments Download
M Source/core/html/track/WebVTTParser.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/track/WebVTTParser.cpp View 1 3 chunks +9 lines, -29 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
fs
Last leg of this bug, PTAL.
7 years, 1 month ago (2013-11-07 15:37:31 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/64303004/diff/1/Source/core/html/track/BufferedLineReader.h File Source/core/html/track/BufferedLineReader.h (right): https://codereview.chromium.org/64303004/diff/1/Source/core/html/track/BufferedLineReader.h#newcode46 Source/core/html/track/BufferedLineReader.h:46: public: nit. WTF_MAKE_NONCOPYABLE https://codereview.chromium.org/64303004/diff/1/Source/core/html/track/BufferedLineReader.h#newcode60 Source/core/html/track/BufferedLineReader.h:60: void setEndOfStream(bool endOfStream) { ...
7 years, 1 month ago (2013-11-08 11:59:43 UTC) #2
fs
On 2013/11/08 11:59:43, jochen wrote: > https://codereview.chromium.org/64303004/diff/1/Source/core/html/track/BufferedLineReader.h > File Source/core/html/track/BufferedLineReader.h (right): > > https://codereview.chromium.org/64303004/diff/1/Source/core/html/track/BufferedLineReader.h#newcode46 > ...
7 years, 1 month ago (2013-11-08 12:42:30 UTC) #3
fs
7 years, 1 month ago (2013-11-08 12:43:33 UTC) #4
jochen (gone - plz use gerrit)
lgtm
7 years, 1 month ago (2013-11-08 12:44:27 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/64303004/80001
7 years, 1 month ago (2013-11-08 12:47:46 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-08 13:21:16 UTC) #7
fs
int -> size_t for lineCount in the unittest.
7 years, 1 month ago (2013-11-08 13:36:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/64303004/310001
7 years, 1 month ago (2013-11-08 13:36:54 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 14:51:01 UTC) #10
Message was sent while issue was closed.
Change committed as 161624

Powered by Google App Engine
This is Rietveld 408576698