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

Issue 1310843006: Pass the v8::Context through the willDestroyServiceWorkerContextOnWorkerThread event. (Closed)

Created:
5 years, 4 months ago by not at google - send to devlin
Modified:
5 years, 3 months ago
Reviewers:
falken, adamk
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Pass the v8::Context through the willDestroyServiceWorkerContextOnWorkerThread event. Currently it only passes a URL, and this isn't enough to uniquely identify the worker. BUG=501569 R=falken@chromium.org, adamk@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201440

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixes #

Total comments: 2

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M Source/core/workers/WorkerThread.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 chunks +3 lines, -1 line 0 comments Download
M public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 18 (3 generated)
not at google - send to devlin
https://codereview.chromium.org/1310843006/diff/1/public/web/modules/serviceworker/WebServiceWorkerContextClient.h File public/web/modules/serviceworker/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/1310843006/diff/1/public/web/modules/serviceworker/WebServiceWorkerContextClient.h#newcode83 public/web/modules/serviceworker/WebServiceWorkerContextClient.h:83: // TODO(kalman): Finish migration to make only the version ...
5 years, 4 months ago (2015-08-26 01:18:01 UTC) #1
not at google - send to devlin
Chromium side is https://codereview.chromium.org/1318643002/.
5 years, 4 months ago (2015-08-26 01:18:07 UTC) #2
falken
https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp File Source/web/ServiceWorkerGlobalScopeProxy.cpp (right): https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp#newcode228 Source/web/ServiceWorkerGlobalScopeProxy.cpp:228: m_client.willDestroyWorkerContext(m_workerGlobalScope->script()->context()); This looks risky, WorkerThread::shutdown() does: workerGlobalScope()->dispose(); workerReportingProxy().willDestroyWorkerGlobalScope(); dispose() ...
5 years, 3 months ago (2015-08-26 08:47:30 UTC) #4
kinuko
On 2015/08/26 08:47:30, falken wrote: > https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp > File Source/web/ServiceWorkerGlobalScopeProxy.cpp (right): > > https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp#newcode228 > ...
5 years, 3 months ago (2015-08-26 09:05:01 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp File Source/web/ServiceWorkerGlobalScopeProxy.cpp (right): https://codereview.chromium.org/1310843006/diff/1/Source/web/ServiceWorkerGlobalScopeProxy.cpp#newcode228 Source/web/ServiceWorkerGlobalScopeProxy.cpp:228: m_client.willDestroyWorkerContext(m_workerGlobalScope->script()->context()); On 2015/08/26 08:47:30, falken wrote: > This looks ...
5 years, 3 months ago (2015-08-26 17:33:54 UTC) #6
not at google - send to devlin
ping?
5 years, 3 months ago (2015-08-27 16:08:48 UTC) #7
falken
lgtm, was holding off in case kinuko's question on the chromium patch resulted in changes, ...
5 years, 3 months ago (2015-08-28 01:54:21 UTC) #8
not at google - send to devlin
-falken +adamk as reviewer for files in Source/
5 years, 3 months ago (2015-08-28 16:36:00 UTC) #10
not at google - send to devlin
-japhet, I mean. Hi falken :-)
5 years, 3 months ago (2015-08-28 16:36:22 UTC) #11
adamk
What does the Chromium side of this look like? That is, what's going to be ...
5 years, 3 months ago (2015-08-28 18:35:26 UTC) #12
not at google - send to devlin
On 2015/08/28 18:35:26, adamk wrote: > What does the Chromium side of this look like? ...
5 years, 3 months ago (2015-08-28 20:47:08 UTC) #13
adamk
Ah, thanks, lgtm. Looks like this doesn't change anything about the lifetime of v8::Contexts held ...
5 years, 3 months ago (2015-08-28 22:00:26 UTC) #14
not at google - send to devlin
On 2015/08/28 22:00:26, adamk wrote: > Ah, thanks, lgtm. Looks like this doesn't change anything ...
5 years, 3 months ago (2015-08-28 22:01:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310843006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310843006/40001
5 years, 3 months ago (2015-08-28 22:02:06 UTC) #17
commit-bot: I haz the power
5 years, 3 months ago (2015-08-29 00:01:29 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201440

Powered by Google App Engine
This is Rietveld 408576698