Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Document.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
| index 8c1c043632fe2f3c0c3b70dba4d5747165f0aaf8..23a35d2880256bab190f8dd6757d4859a9b1f15c 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -2430,8 +2430,12 @@ DocumentParser* Document::implicitOpen(ParserSynchronizationPolicy parserSyncPol |
| setCompatibilityMode(NoQuirksMode); |
| - if (!threadedParsingEnabledForTesting()) |
| + if (!threadedParsingEnabledForTesting()) { |
| parserSyncPolicy = ForceSynchronousParsing; |
| + } else if (parserSyncPolicy == AllowAsynchronousParsing && isPrefetchOnly()) { |
|
droger
2016/08/16 10:01:54
This probably belongs to another CL.
mattcary
2016/08/17 20:27:32
Yes, I think this leaked over from your CL. Remove
|
| + // Prefetch must be synchronous. |
| + parserSyncPolicy = ForceSynchronousParsing; |
| + } |
| m_parserSyncPolicy = parserSyncPolicy; |
| m_parser = createParser(); |