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

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

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove extra incs. Created 5 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: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index e82b92e8c4206f27da928123704ca1075493f67a..8732412e89454fa76a2d5686671297216e68eeb2 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -526,7 +526,10 @@ void DocumentLoader::ensureWriter(const AtomicString& mimeType, const KURL& over
m_frame->loader().clear();
ASSERT(m_frame->page());
- ParserSynchronizationPolicy parsingPolicy = (m_substituteData.isValid() && m_substituteData.forceSynchronousLoad()) ? ForceSynchronousParsing : AllowAsynchronousParsing;
+ ParserSynchronizationPolicy parsingPolicy = AllowAsynchronousParsing;
+ if ((m_substituteData.isValid() && m_substituteData.forceSynchronousLoad()) || m_frame->host()->chromeClient().disableThreadedParsingForUnitTests())
+ parsingPolicy = ForceSynchronousParsing;
+
m_writer = createWriterFor(0, init, mimeType, encoding, false, parsingPolicy);
m_writer->setDocumentWasLoadedAsPartOfNavigation();

Powered by Google App Engine
This is Rietveld 408576698