Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
index 59c18165977be6808061e6b8025c7f35ef0df0c6..25732d8e9cb9c6d5b1fa0eedba9a10d0f9797380 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -818,6 +818,7 @@ void ScriptLoader::execute() { |
bool errorOccurred = false; |
ScriptSourceCode source = m_pendingScript->getSource(KURL(), errorOccurred); |
m_pendingScript->dispose(); |
sof
2017/02/16 08:15:15
Call detach() instead? Actually, I think we should
hiroshige
2017/02/17 23:15:15
Done.
|
+ m_pendingScript = nullptr; |
if (errorOccurred) { |
dispatchErrorEvent(); |
} else if (!m_resource->wasCanceled()) { |