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

Unified Diff: Source/core/loader/DocumentLoader.cpp

Issue 646913002: Force synchronized parser for substitute main resource load marked forceSynchronousLoad. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/core/loader/DocumentWriter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index 25bfc3909103d7208a1b99a94017ea51e48bc129..4181530f3555c6eac7542860ca1dc36b94a5de9d 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -521,6 +521,10 @@ void DocumentLoader::ensureWriter(const AtomicString& mimeType, const KURL& over
m_writer = createWriterFor(0, init, mimeType, encoding, false);
m_writer->setDocumentWasLoadedAsPartOfNavigation();
+
+ if (m_substituteData.isValid() && m_substituteData.forceSynchronousLoad())
+ m_writer->forceSynchronousParse();
+
// This should be set before receivedFirstData().
if (!overridingURL.isEmpty())
m_frame->document()->setBaseURLOverride(overridingURL);
« no previous file with comments | « no previous file | Source/core/loader/DocumentWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698