Document.write should always be processed synchronously regardless of bg parser
Document.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

Review URL: https://codereview.chromium.org/764963002

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@186159 bbb929c8-8fbe-4397-9dbb-9b2b20218538

smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,modulexcite/blink,nwjs/blink,jtg-gg/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,nwjs/blink,jtg-gg/blink,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,nwjs/blink,nwjs/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,modulexcite/blink,nwjs/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk