Index: Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp |
index 73afc3dc1c0687fdf5afb65d462d9a382b895b09..723d803b2557689d95b216d40e34355e322ef6b3 100644 |
--- a/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -305,6 +305,8 @@ void WebEmbeddedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame) |
DenyCrossOriginRequests, |
nullptr, |
bind(&WebEmbeddedWorkerImpl::onScriptLoaderFinished, this)); |
+ // Do nothing here since onScriptLoaderFinished() might have been already |
+ // invoked and |this| might have been deleted at this point. |
} |
void WebEmbeddedWorkerImpl::sendProtocolMessage(int callId, const WebString& message, const WebString& state) |