DescriptionDocument.write should always be processed synchronously regardless of bg parser
Before this CL, document.write() was not processed synchronously when there
are pending ParsedChunks from BackgroundHTMLParser.
HTMLParserScheduler historically used to control both BackgroundHTMLParser
pumps and asynchronous main thread parsing.
Now that main thread parsing is only used for synchronous parsing, there is no reason
that main thread parsing path should query HTMLParserScheduler status.
This CL modifies pumpTokenizerIfPossible(), which is a method used only
in main thread parsing, to not wait for HTMLParserScheduler to schedule its
pumping.
This CL addresses flakinesses seen in inspector/sources/debugger tests from
Blink Scheduler changes.
TESTS=inspector/sources/debugger/
BUG=437176
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186159
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|