| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index f2929f0eb0859debabec50951d240a1dfae0d4b2..f8bd4142e83a85e9bfddcf4d46d5f3c8621df315 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2381,6 +2381,9 @@ PassRefPtrWillBeRawPtr<DocumentParser> Document::implicitOpen(ParserSynchronizat
|
|
|
| setCompatibilityMode(NoQuirksMode);
|
|
|
| + if (frameHost() && frameHost()->chromeClient().disableThreadedParsingForUnitTests())
|
| + parserSyncPolicy = ForceSynchronousParsing;
|
| +
|
| m_parserSyncPolicy = parserSyncPolicy;
|
| m_parser = createParser();
|
| setParsingState(Parsing);
|
|
|