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

Issue 27394002: Process decoded bytes when in stopped (but not detached) state (Closed)

Created:
7 years, 2 months ago by jamesr
Modified:
7 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Process decoded bytes when in stopped (but not detached) state When a DecodedDataDocumentParser receives bytes it can choose whether to pass those through to the underlying document's decoder or not. If the parser is the detached state, there is no underlying document so it doesn't make sense to process the bytes at all. r158300 patched DecodedDataDocumentParser to not process bytes when in the stopped or detached state but it turns out in some scenarios involving XSLT we receive bytes in the stopped state. This relaxes the check from isStopped() to isDetached(). BUG=304965 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159848

Patch Set 1 #

Patch Set 2 : add comment and test #

Total comments: 2

Patch Set 3 : rename test, add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
A LayoutTests/http/tests/incremental/chunked-xsl-transformed-xml.pl View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/incremental/chunked-xsl-transformed-xml-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/http/tests/incremental/resources/transform.xsl View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M Source/core/dom/DecodedDataDocumentParser.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M Source/core/xml/parser/XMLDocumentParser.cpp View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
jamesr
I'm still working on understanding the sequence of events that leads to this state better ...
7 years, 2 months ago (2013-10-15 19:47:29 UTC) #1
eseidel
http://src.chromium.org/viewvc/blink?revision=158300&view=revision
7 years, 2 months ago (2013-10-15 19:55:19 UTC) #2
abarth-chromium
Hum... Maybe we should dig deeper and understand what's going on. We shouldn't be here ...
7 years, 2 months ago (2013-10-15 19:56:01 UTC) #3
jamesr
On 2013/10/15 19:55:19, eseidel wrote: > http://src.chromium.org/viewvc/blink?revision=158300&view=revision Right, this is a partial revert of that ...
7 years, 2 months ago (2013-10-15 19:56:22 UTC) #4
eseidel
The goal here is to allow the XMLDocumentParser to still recieve bytes in the stopped ...
7 years, 2 months ago (2013-10-15 19:57:23 UTC) #5
eseidel
On 2013/10/15 19:56:22, jamesr wrote: > On 2013/10/15 19:55:19, eseidel wrote: > > http://src.chromium.org/viewvc/blink?revision=158300&view=revision > ...
7 years, 2 months ago (2013-10-15 19:58:01 UTC) #6
jamesr
We call stopParsing() on this stack: 2 Content Shell Framework 0x02e2f35b WebCore::DocumentParser::stopParsing() + 107 3 ...
7 years, 2 months ago (2013-10-15 20:31:54 UTC) #7
jamesr
I've added a comment to XMLDocumentParser highlighting the craziness and a test. The test is ...
7 years, 2 months ago (2013-10-16 19:05:24 UTC) #8
eseidel
The test doesn't seem "slow" despite labeling itself as such. How are you enforcing packet ...
7 years, 2 months ago (2013-10-16 19:35:08 UTC) #9
jamesr
I'm not doing anything specific to enforce packet boundaries other than what the other tests ...
7 years, 2 months ago (2013-10-16 19:39:58 UTC) #10
abarth-chromium
slow-xsl-transformed-xml.pl -> chunked-xsl-transformed-xml.pl ?
7 years, 2 months ago (2013-10-17 01:08:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/27394002/18001
7 years, 2 months ago (2013-10-17 01:49:55 UTC) #12
jamesr
Renamed the test, added a comment and stuck this in the CQ. Happy to do ...
7 years, 2 months ago (2013-10-17 01:50:28 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 09:10:37 UTC) #14
Message was sent while issue was closed.
Change committed as 159848

Powered by Google App Engine
This is Rietveld 408576698