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

Unified Diff: Source/core/workers/WorkerGlobalScope.cpp

Issue 822863003: LifecycleObserver::contextDestroyed should be explicitly dispatched promptly when a context is dest… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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: Source/core/workers/WorkerGlobalScope.cpp
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp
index e662c64ee0528503f9b5aa773fdaf6b907226ac8..4656870c806cd9351ea51af8c798d80f69a236fc 100644
--- a/Source/core/workers/WorkerGlobalScope.cpp
+++ b/Source/core/workers/WorkerGlobalScope.cpp
@@ -221,6 +221,8 @@ void WorkerGlobalScope::dispose()
// being carried out on the right thread. We therefore cannot clear
// the thread field before all references to the worker global
// scope are gone.
+
+ ExecutionContext::contextDestroyed();
}
void WorkerGlobalScope::didEvaluateWorkerScript()

Powered by Google App Engine
This is Rietveld 408576698