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

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

Issue 194923007: Explicit notification and removal of lifecycle observers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform ThreadState detachment last 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.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 915e779503eb82e08e4043ba6b9a431b726d1ea1..9a39bc395a777695e4a5e182f9104cdd900b8238 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -150,6 +150,8 @@ namespace WebCore {
virtual EventTarget* errorEventTarget() OVERRIDE FINAL;
virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { }
+ void clearThread() { m_thread = 0; }
+
KURL m_url;
String m_userAgent;

Powered by Google App Engine
This is Rietveld 408576698