Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2184963002: Prerender: NoStatePrefetch browser side changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove debug DVLOG Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« chrome/browser/prerender/prerender_contents.cc ('K') | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698