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

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

Issue 2609763002: Don't post multiple task for executing blocked scripts. (Closed)
Patch Set: Rebased Created 3 years, 12 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bc2657a5f609d7db757599f8e4dbe79d87420f1..5270a9126081f9e6297c41fe033c08ba781b95e6 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3356,6 +3356,9 @@ void Document::didRemoveAllPendingStylesheet() {
}
void Document::didLoadAllScriptBlockingResources() {
+ if (m_executeScriptsWaitingForResourcesTaskHandle.isActive())
+ return;
+
// Use wrapWeakPersistent because the task should not keep this Document alive
// just for executing scripts.
m_executeScriptsWaitingForResourcesTaskHandle =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698