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

Issue 473203002: DocumentParser should flush itself on finish (Closed)

Created:
6 years, 4 months ago by kouhei (in TOK)
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

DocumentParser should flush itself on finish(). Before this patch, |DocumentParser| user had to explicitly call |flush()| before calling |finish()| to flush any bytes that may be remaining inside |m_decoder|. This patch moves |DocumentParser::flush| call inside |finish()| overrides, and makes |DocumentParser::flush| protected as this method no longer needs to be called by user. BUG=404107 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180569

Patch Set 1 #

Total comments: 4

Patch Set 2 : compile fix #

Patch Set 3 : needs finish event when stopped #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M Source/core/dom/DocumentParser.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/loader/DocumentWriter.cpp View 1 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kouhei (in TOK)
Would you take a look?
6 years, 4 months ago (2014-08-15 13:22:30 UTC) #1
abarth-chromium
https://codereview.chromium.org/473203002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/473203002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp#newcode875 Source/core/html/parser/HTMLDocumentParser.cpp:875: flush(); flush() can produce end up executing arbitrary script, ...
6 years, 4 months ago (2014-08-15 16:52:57 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/473203002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/473203002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp#newcode875 Source/core/html/parser/HTMLDocumentParser.cpp:875: flush(); On 2014/08/15 16:52:57, abarth wrote: > flush() can ...
6 years, 4 months ago (2014-08-19 02:01:24 UTC) #3
kouhei (in TOK)
eh. XSLT tests are failing. looking.
6 years, 4 months ago (2014-08-19 02:20:38 UTC) #4
kouhei (in TOK)
On 2014/08/19 02:20:38, kouhei wrote: > eh. XSLT tests are failing. looking. Fixed. PTAL
6 years, 4 months ago (2014-08-19 04:25:18 UTC) #5
eseidel
lgtm
6 years, 4 months ago (2014-08-19 04:28:17 UTC) #6
kouhei (in TOK)
Thanks for review!
6 years, 4 months ago (2014-08-19 04:35:57 UTC) #7
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-08-19 04:36:01 UTC) #8
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 4 months ago (2014-08-19 04:36:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/473203002/80001
6 years, 4 months ago (2014-08-19 04:36:18 UTC) #10
kouhei (in TOK)
The CQ bit was unchecked by kouhei@chromium.org
6 years, 4 months ago (2014-08-19 04:38:59 UTC) #11
kouhei (in TOK)
Sorry. abarth: PTAL.
6 years, 4 months ago (2014-08-19 04:39:20 UTC) #12
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 4 months ago (2014-08-19 16:15:27 UTC) #13
abarth-chromium
Eric's review is fine. You don't need to wait for me. :)
6 years, 4 months ago (2014-08-19 16:15:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/473203002/80001
6 years, 4 months ago (2014-08-19 16:16:45 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 16:17:58 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (80001) as 180569

Powered by Google App Engine
This is Rietveld 408576698