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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2137913002: Yield HTMLDocumentParser after executing parser blocking script Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: repeat10 Created 4 years, 5 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 | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index 34627dcc7fe3a88700b86dd4fc261341fb42d116..898e0648d3dc7d8e6eed49214ef47da99df08b67 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -937,7 +937,11 @@ void HTMLDocumentParser::resumeParsingAfterScriptExecution()
if (m_haveBackgroundParser) {
validateSpeculations(std::move(m_lastChunkBeforeScript));
ASSERT(!m_lastChunkBeforeScript);
- pumpPendingSpeculations();
+ if (true || RuntimeEnabledFeatures::yieldAfterScriptExecutionEnabled()) {
+ m_parserScheduler->scheduleForResume();
+ } else {
+ pumpPendingSpeculations();
+ }
return;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698