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

Issue 243823002: Flush pending text after every chunk of Tokens (Closed)

Created:
6 years, 8 months ago by eseidel
Modified:
6 years, 8 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, ojan
Visibility:
Public.

Description

Flush pending text after every chunk of Tokens If you had a very slow loading page which would hang in the middle of a text node, we would not show the results of that text node until we encountered the first token after that node. This broke a web-based traceroute which used http chunked encoding to keep the connection open while it slowly piped the output of traceroute over the http connection. http://www.net.princeton.edu/cgi-bin/traceroute.pl?target=google.com&cmd=Go This changes the behavior of our one test with a gigantic text node by changing how the the text is split. I believe this also affected progressive loading of text/plain documents. I'm slightly surprised no one complained. I tested with: http://norvig.com/big.txt and we now progressively load that much better than we do with dev channel chrome. I'm not sure a good way to test this that won't be flaky. If we encounter anything other than more text node content in the http stream we'll immediately emit the pending text. For now I'm going to presume the one affected test is sufficient for coverage. BUG=363974 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172094

Patch Set 1 #

Total comments: 1

Patch Set 2 : Mark as NeedsRebaseline #

Patch Set 3 : add another NeedsRebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M LayoutTests/TestExpectations View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/platform/win/fast/text/large-text-composed-char-expected.txt View 5 chunks +9 lines, -9 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
abarth-chromium
https://codereview.chromium.org/243823002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/243823002/diff/1/Source/core/html/parser/HTMLDocumentParser.cpp#newcode481 Source/core/html/parser/HTMLDocumentParser.cpp:481: m_treeBuilder->flush(); Do we need this in the non-threaded case? ...
6 years, 8 months ago (2014-04-18 21:51:02 UTC) #1
esprehn
Ideally we'd add a unit test or a http test for this, but I guess ...
6 years, 8 months ago (2014-04-18 21:52:08 UTC) #2
eseidel
We're not hung. We've just buffered the in-progress text node and are refusing to give ...
6 years, 8 months ago (2014-04-18 21:54:37 UTC) #3
eseidel
I'm happy to look at removing the non-threaded case, I'm not aware of any consumers.
6 years, 8 months ago (2014-04-18 21:55:03 UTC) #4
eseidel
My current best guess for a direct test would involve a custom http resource which ...
6 years, 8 months ago (2014-04-18 22:04:50 UTC) #5
abarth-chromium
LGTM
6 years, 8 months ago (2014-04-19 00:01:09 UTC) #6
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 8 months ago (2014-04-21 17:16:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/243823002/1
6 years, 8 months ago (2014-04-21 17:16:59 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-21 17:53:39 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-21 17:53:39 UTC) #10
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 8 months ago (2014-04-21 19:38:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/243823002/20001
6 years, 8 months ago (2014-04-21 19:38:57 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-21 20:21:37 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-21 20:21:37 UTC) #14
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 8 months ago (2014-04-21 23:00:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/243823002/40001
6 years, 8 months ago (2014-04-21 23:00:26 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 00:03:33 UTC) #17
Message was sent while issue was closed.
Change committed as 172094

Powered by Google App Engine
This is Rietveld 408576698