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

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

Issue 218953002: Oilpan: IDBCursor should be detached from IDBRequest when the IDBRequest stops (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: 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);

Powered by Google App Engine
This is Rietveld 408576698