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

Issue 1264913002: [Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher (Closed)

Created:
5 years, 4 months ago by annekao
Modified:
5 years, 4 months ago
Reviewers:
falken, Devlin, sadrul, dcheng
CC:
blink-reviews, blink-worker-reviews_chromium.org, dglazkov+blink, horo+watch_chromium.org, not at google - send to devlin, kinuko+worker_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher Pass the v8::context from the worker thread up to the extensions dispatcher. In order to expose any kind of custom binding (i.e., javascript callback into C++ code) for the service worker context, we need to be alerted of when the context is created, so that we can inject them. For most contexts, this is done through the blink notification (didCreateScriptContext), but that doesn't cover worker contexts. Please view https://codereview.chromium.org/1256323008/ for the continuation of this implementation in chrome. BUG=501569 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200277

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Removed v8::Context parameter #

Total comments: 7

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

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

Messages

Total messages: 45 (15 generated)
annekao
5 years, 4 months ago (2015-07-30 21:17:36 UTC) #6
Devlin
LGTM, but we'll let a blink expert be the real authority.
5 years, 4 months ago (2015-07-30 21:34:11 UTC) #7
annekao
Hi dcheng@, please take a look at the changes in these files. The v8::context for ...
5 years, 4 months ago (2015-07-31 20:12:17 UTC) #9
falken
drive by https://codereview.chromium.org/1264913002/diff/70001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/1264913002/diff/70001/Source/core/workers/WorkerThread.cpp#newcode259 Source/core/workers/WorkerThread.cpp:259: m_workerReportingProxy.didInitializeWorkerContext(script->context()); It seems to make sense to ...
5 years, 4 months ago (2015-08-03 01:55:14 UTC) #11
dcheng
Can you give me some background about why this is needed? I don't know enough ...
5 years, 4 months ago (2015-08-03 19:12:02 UTC) #12
Devlin
On 2015/08/03 19:12:02, dcheng wrote: > Can you give me some background about why this ...
5 years, 4 months ago (2015-08-03 20:03:51 UTC) #13
dcheng
https://codereview.chromium.org/1264913002/diff/70001/public/web/WebServiceWorkerContextClient.h File public/web/WebServiceWorkerContextClient.h (right): https://codereview.chromium.org/1264913002/diff/70001/public/web/WebServiceWorkerContextClient.h#newcode97 public/web/WebServiceWorkerContextClient.h:97: virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, const blink::WebURL& url) { } ...
5 years, 4 months ago (2015-08-04 00:27:36 UTC) #14
dcheng
Also, please update the CL description to explain why this patch is needed.
5 years, 4 months ago (2015-08-04 00:27:47 UTC) #15
annekao
On 2015/08/03 01:55:14, falken wrote: > drive by > > https://codereview.chromium.org/1264913002/diff/70001/Source/core/workers/WorkerThread.cpp > File Source/core/workers/WorkerThread.cpp (right): ...
5 years, 4 months ago (2015-08-04 18:43:39 UTC) #16
dcheng
On 2015/08/04 at 18:43:39, annekao wrote: > On 2015/08/03 01:55:14, falken wrote: > > drive ...
5 years, 4 months ago (2015-08-04 18:48:33 UTC) #17
annekao
On 2015/08/04 18:48:33, dcheng wrote: > > On 2015/08/04 00:27:36, dcheng wrote: > > > ...
5 years, 4 months ago (2015-08-04 19:53:33 UTC) #18
dcheng
On 2015/08/04 at 19:53:33, annekao wrote: > On 2015/08/04 18:48:33, dcheng wrote: > > > ...
5 years, 4 months ago (2015-08-04 19:57:47 UTC) #19
annekao
On 2015/08/04 19:57:47, dcheng wrote: > On 2015/08/04 at 19:53:33, annekao wrote: > > On ...
5 years, 4 months ago (2015-08-04 20:05:13 UTC) #20
dcheng
https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerReportingProxy.h File Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerReportingProxy.h#newcode38 Source/core/workers/WorkerReportingProxy.h:38: #include <v8.h> Remove this #include. https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): ...
5 years, 4 months ago (2015-08-05 00:04:53 UTC) #21
annekao
https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerReportingProxy.h File Source/core/workers/WorkerReportingProxy.h (right): https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerReportingProxy.h#newcode38 Source/core/workers/WorkerReportingProxy.h:38: #include <v8.h> On 2015/08/05 00:04:53, dcheng wrote: > Remove ...
5 years, 4 months ago (2015-08-05 16:43:02 UTC) #22
falken
https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp#newcode253 Source/core/workers/WorkerThread.cpp:253: if (script->scriptState()->contextIsValid()) { On 2015/08/05 16:43:02, annekao wrote: > ...
5 years, 4 months ago (2015-08-06 03:37:20 UTC) #23
annekao
On 2015/08/06 03:37:20, falken wrote: > https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp > File Source/core/workers/WorkerThread.cpp (right): > > https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp#newcode253 > ...
5 years, 4 months ago (2015-08-07 16:21:41 UTC) #24
dcheng
On 2015/08/07 at 16:21:41, annekao wrote: > On 2015/08/06 03:37:20, falken wrote: > > https://codereview.chromium.org/1264913002/diff/110001/Source/core/workers/WorkerThread.cpp ...
5 years, 4 months ago (2015-08-07 17:34:03 UTC) #25
falken
https://codereview.chromium.org/1264913002/diff/130001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/1264913002/diff/130001/Source/core/workers/WorkerThread.cpp#newcode255 Source/core/workers/WorkerThread.cpp:255: } This particular change lgtm. The existing code is ...
5 years, 4 months ago (2015-08-10 04:10:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264913002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264913002/190001
5 years, 4 months ago (2015-08-10 23:43:29 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/39449)
5 years, 4 months ago (2015-08-10 23:49:58 UTC) #33
dcheng
lgtm, but let's try to clean up this logic in a followup patch
5 years, 4 months ago (2015-08-10 23:51:43 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264913002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264913002/190001
5 years, 4 months ago (2015-08-10 23:52:09 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:190001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200277
5 years, 4 months ago (2015-08-10 23:55:20 UTC) #37
falken
On 2015/08/10 23:51:43, dcheng wrote: > lgtm, but let's try to clean up this logic ...
5 years, 4 months ago (2015-08-11 01:49:28 UTC) #38
sadrul
https://codereview.chromium.org/1264913002/diff/190001/Source/core/workers/WorkerThread.cpp File Source/core/workers/WorkerThread.cpp (right): https://codereview.chromium.org/1264913002/diff/190001/Source/core/workers/WorkerThread.cpp#newcode253 Source/core/workers/WorkerThread.cpp:253: if (m_workerGlobalScope->script()->scriptState()->contextIsValid()) { Do you think this should first ...
5 years, 4 months ago (2015-08-11 22:07:31 UTC) #40
falken
On 2015/08/11 22:07:31, sadrul wrote: > https://codereview.chromium.org/1264913002/diff/190001/Source/core/workers/WorkerThread.cpp > File Source/core/workers/WorkerThread.cpp (right): > > https://codereview.chromium.org/1264913002/diff/190001/Source/core/workers/WorkerThread.cpp#newcode253 > ...
5 years, 4 months ago (2015-08-12 02:17:28 UTC) #41
falken
A revert of this CL (patchset #5 id:190001) has been created in https://codereview.chromium.org/1287903002/ by falken@chromium.org. ...
5 years, 4 months ago (2015-08-12 03:17:18 UTC) #42
falken
On 2015/08/12 03:17:18, falken wrote: > A revert of this CL (patchset #5 id:190001) has ...
5 years, 4 months ago (2015-08-12 06:29:13 UTC) #43
annekao
5 years, 4 months ago (2015-08-12 18:15:27 UTC) #45
Message was sent while issue was closed.
Updated patch can be found here: https://codereview.chromium.org/1287103002/

Powered by Google App Engine
This is Rietveld 408576698