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

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

Issue 318393002: Initial implementation of ServiceWorkerGlobalScope.fetch() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test for destroying the execution context while fetch is happening. Created 6 years, 6 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/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index 3d81fbe0afb9534b648e6b5426cf40a64f09469e..cbdaafee7aac6ae169392acc279708d4b6222a5b 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -205,6 +205,8 @@ public:
{
WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
+ workerGlobalScope->stopFetch();
+
dominicc (has gone to gerrit) 2014/06/16 06:07:50 Let's tighten up the whitespace here by deleting 2
horo 2014/06/16 06:32:18 Done.
workerGlobalScope->stopActiveDOMObjects();
// Event listeners would keep DOMWrapperWorld objects alive for too long. Also, they have references to JS objects,

Powered by Google App Engine
This is Rietveld 408576698