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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp

Issue 1744973002: Make AbstractWorker a ContextLifecycleObserver rather than an ActiveDOMObject (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 7fc496960bebaa06b2fff17c0e1f9429162ae43d..202ef70ace3dffe1cbffb7e78f0aefe9aa132c5c 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -44,8 +44,6 @@ void InProcessWorkerBase::postMessage(ExecutionContext* context, PassRefPtr<Seri
bool InProcessWorkerBase::initialize(ExecutionContext* context, const String& url, ExceptionState& exceptionState)
{
- suspendIfNeeded();
-
KURL scriptURL = resolveURL(url, exceptionState);
if (scriptURL.isEmpty())
return false;
@@ -69,7 +67,7 @@ void InProcessWorkerBase::terminate()
m_contextProxy->terminateWorkerGlobalScope();
}
-void InProcessWorkerBase::stop()
+void InProcessWorkerBase::contextDestroyed()
{
terminate();
}

Powered by Google App Engine
This is Rietveld 408576698