Index: Source/core/workers/WorkerGlobalScope.cpp |
diff --git a/Source/core/workers/WorkerGlobalScope.cpp b/Source/core/workers/WorkerGlobalScope.cpp |
index 70781285349df847ad0924c5a3d0752db896cc63..3f5da1213d26a4021f958e5c87d5a075b89f3867 100644 |
--- a/Source/core/workers/WorkerGlobalScope.cpp |
+++ b/Source/core/workers/WorkerGlobalScope.cpp |
@@ -196,6 +196,10 @@ void WorkerGlobalScope::dispose() |
{ |
ASSERT(thread()->isCurrentThread()); |
+ if (m_script) |
+ m_script->dispose(); |
+ lifecycleNotifier().notifyContextWillBeDestroyed(); |
+ |
clearScript(); |
haraken
2014/04/01 05:56:14
I'm afraid this is very hacky. This code is the wa
Mads Ager (chromium)
2014/04/01 11:38:38
This code is one big hair ball already where thing
|
clearInspector(); |
setClient(0); |