Index: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
index 202ef70ace3dffe1cbffb7e78f0aefe9aa132c5c..7fc496960bebaa06b2fff17c0e1f9429162ae43d 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp |
@@ -44,6 +44,8 @@ |
bool InProcessWorkerBase::initialize(ExecutionContext* context, const String& url, ExceptionState& exceptionState) |
{ |
+ suspendIfNeeded(); |
+ |
KURL scriptURL = resolveURL(url, exceptionState); |
if (scriptURL.isEmpty()) |
return false; |
@@ -67,7 +69,7 @@ |
m_contextProxy->terminateWorkerGlobalScope(); |
} |
-void InProcessWorkerBase::contextDestroyed() |
+void InProcessWorkerBase::stop() |
{ |
terminate(); |
} |