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 = |