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

Issue 454313002: [WIP] XMLHttpRequest should parse as it receives chunks. (Closed)

Created:
6 years, 4 months ago by kouhei (in TOK)
Modified:
6 years, 4 months ago
Reviewers:
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

[WIP] XMLHttpRequest should parse as it receives chunks. Before this patch, XMLHttpRequest delayed parsing the received data until responseXML getter was invoked. This patch changes XHR to parse as it receives new data. By invoking |DocumentParser::appendBytes()| from |didReceiveData|, |m_responseDocument| DOM is created asynchronously. BUG=402261

Patch Set 1 #

Patch Set 2 : clean ups #

Patch Set 3 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -49 lines) Patch
A LayoutTests/http/tests/xmlhttprequest/resources/script.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-responseXML-ensure-noscript-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 8 chunks +96 lines, -48 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698