DescriptionMake XHR use background HTML parser
This patch enables background html parser for documents with no frames,
which are XMLHttpRequest response documents. HTML imports and
inspector/DOMPatchSupport will still to use the synchronous mode as the
current code expect the change to happen synchronously.
Before this change, XMLHttpRequest immediately set its state to DONE after
receiving the last data. After this change, XMLHttpRequest will wait for
|Document::finishedParsing| before changing its state to DONE if it has
responseType == "document". This is needed because |DocumentParser::finish()|
do not synchronously give the complete document, but we have to wait until all
tokens from the background parser is processed.
BUG=409461
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181684
Patch Set 1 #Patch Set 2 : document parse finishes asyncronously after DocumentParser::finish #Patch Set 3 : rebased against 521403002 #Patch Set 4 : remove 521403002 changes from diff #
Total comments: 4
Patch Set 5 : address tyoshino-san review / more comments #
Total comments: 6
Patch Set 6 : register before finish #
Total comments: 4
Patch Set 7 : Use DocumentParserClient #Patch Set 8 : fix clean up code #Patch Set 9 : fix LayoutTests? #Patch Set 10 : give up on html imports for now #Patch Set 11 : fix compile #
Total comments: 7
Messages
Total messages: 19 (2 generated)
|