| Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| index 23aa6427f502a717d87f9bbb4569a6116ea9cc4d..30287db2d3055e4770b072aaea1fc621b58d755a 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
|
| @@ -272,14 +272,11 @@ bool HTMLDocumentParser::canTakeNextToken()
|
| if (isStopped())
|
| return false;
|
|
|
| - if (isWaitingForScripts()) {
|
| - // If we're paused waiting for a script, we try to execute scripts before continuing.
|
| + // If we're paused waiting for a script, we try to execute scripts before continuing.
|
| + if (m_treeBuilder->hasParserBlockingScript())
|
| runScriptsForPausedTreeBuilder();
|
| - if (isStopped())
|
| - return false;
|
| - if (isWaitingForScripts())
|
| - return false;
|
| - }
|
| + if (isStopped() || isWaitingForScripts())
|
| + return false;
|
|
|
| // FIXME: It's wrong for the HTMLDocumentParser to reach back to the
|
| // LocalFrame, but this approach is how the old parser handled
|
|
|