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

Issue 1318643002: 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:
Lei Zhang, kinuko
CC:
chromium-reviews, michaeln, mlamouri+watch-content_chromium.org, tzik, extensions-reviews_chromium.org, serviceworker-reviews, jam, jsbell+serviceworker_chromium.org, nhiroki, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
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. Update extension's dispatcher.cc to use the context. BUG=501569, 525965 R=kinuko@chromium.org, thestig@chromium.org Committed: https://crrev.com/4a0bb926cb1d83fab27b6ad866c04ba481f66268 Cr-Commit-Position: refs/heads/master@{#346424}

Patch Set 1 #

Total comments: 5

Patch Set 2 : update dispatcher.cc #

Patch Set 3 : rebase against blink change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -23 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 chunk +3 lines, -1 line 0 comments Download
M extensions/renderer/dispatcher.cc View 1 3 chunks +54 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
not at google - send to devlin
Blink side of patch is https://codereview.chromium.org/1310843006. Obviously that will need to go in first. https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc ...
5 years, 4 months ago (2015-08-26 01:17:07 UTC) #1
not at google - send to devlin
Sorry, jochen is out - kinuko could you look at the content side, thestig the ...
5 years, 4 months ago (2015-08-26 01:20:16 UTC) #3
kinuko
lgtm
5 years, 3 months ago (2015-08-26 06:13:17 UTC) #4
kinuko
https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc (right): https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc#newcode401 content/renderer/service_worker/service_worker_context_client.cc:401: v8::Local<v8::Context> context) { Looking into https://codereview.chromium.org/1310843006/ when this one's ...
5 years, 3 months ago (2015-08-26 09:04:18 UTC) #5
not at google - send to devlin
I've updated extensions code to actually use this to prove that it works. I've also ...
5 years, 3 months ago (2015-08-26 17:29:03 UTC) #7
Lei Zhang
chrome/ lgtm
5 years, 3 months ago (2015-08-26 20:49:57 UTC) #8
kinuko
https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc (right): https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc#newcode401 content/renderer/service_worker/service_worker_context_client.cc:401: v8::Local<v8::Context> context) { On 2015/08/26 17:29:02, kalman wrote: > ...
5 years, 3 months ago (2015-08-27 00:36:55 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc (right): https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc#newcode401 content/renderer/service_worker/service_worker_context_client.cc:401: v8::Local<v8::Context> context) { On 2015/08/27 00:36:55, kinuko wrote: > ...
5 years, 3 months ago (2015-08-27 15:11:50 UTC) #10
kinuko
On 2015/08/27 15:11:50, kalman wrote: > https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc > File content/renderer/service_worker/service_worker_context_client.cc (right): > > https://codereview.chromium.org/1318643002/diff/1/content/renderer/service_worker/service_worker_context_client.cc#newcode401 > ...
5 years, 3 months ago (2015-08-27 15:59:26 UTC) #11
not at google - send to devlin
Yeah it could be, though v8::Context is more direct and so long as it all ...
5 years, 3 months ago (2015-08-27 16:10:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318643002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318643002/60001
5 years, 3 months ago (2015-08-31 17:42:19 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 3 months ago (2015-08-31 18:40:48 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4a0bb926cb1d83fab27b6ad866c04ba481f66268 Cr-Commit-Position: refs/heads/master@{#346424}
5 years, 3 months ago (2015-08-31 18:41:26 UTC) #17
kalman_google
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/1329703004/ by kalman@google.com. ...
5 years, 3 months ago (2015-09-02 16:16:38 UTC) #18
not at google - send to devlin
5 years, 3 months ago (2015-09-02 18:35:58 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/1319603003/ by kalman@chromium.org.

The reason for reverting is: Canary is frequently crashing, likely due to
threading issues with this patch..

Powered by Google App Engine
This is Rietveld 408576698