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

Issue 383063008: Expose the ServiceWorker's v8 context to embedders. (Closed)

Created:
6 years, 5 months ago by Jeffrey Yasskin
Modified:
6 years, 5 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, dcheng
Base URL:
https://chromium.googlesource.com/chromium/blink.git@pinned
Project:
blink
Visibility:
Public.

Description

Expose the ServiceWorker's v8 context to embedders. BUG=390726

Patch Set 1 #

Patch Set 2 : Add a test and some comments #

Total comments: 4

Patch Set 3 : Remove an unused v8::Isolate forward decl (but should the Proxy expose an Isolate?) #

Total comments: 14

Patch Set 4 : Dominic's comments #

Patch Set 5 : Don't #include .cpp files. :-P #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -0 lines) Patch
M Source/web/ServiceWorkerGlobalScopeProxy.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 3 chunks +14 lines, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/WebEmbeddedWorkerImpl.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
A Source/web/tests/ServiceWorkerGlobalScopeProxyTest.cpp View 1 2 3 4 1 chunk +210 lines, -0 lines 1 comment Download
A Source/web/tests/data/blank.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/web.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextProxy.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jeffrey Yasskin
I'm hoping to use this in https://github.com/jyasskin/chromium/compare/service-worker-apps...ext-sw-helper-crbug-390726 Does it look close to the right way ...
6 years, 5 months ago (2014-07-12 04:47:30 UTC) #1
abarth-chromium
On 2014/07/12 at 04:47:30, jyasskin wrote: > I'm hoping to use this in https://github.com/jyasskin/chromium/compare/service-worker-apps...ext-sw-helper-crbug-390726 > ...
6 years, 5 months ago (2014-07-14 00:50:57 UTC) #2
Jeffrey Yasskin
On Sun, Jul 13, 2014 at 5:50 PM, <abarth@chromium.org> wrote: > On 2014/07/12 at 04:47:30, ...
6 years, 5 months ago (2014-07-14 02:55:01 UTC) #3
dominicc (has gone to gerrit)
On 2014/07/14 02:55:01, Jeffrey Yasskin wrote: > On Sun, Jul 13, 2014 at 5:50 PM, ...
6 years, 5 months ago (2014-07-14 04:54:33 UTC) #4
Jeffrey Yasskin
On 2014/07/14 04:54:33, dominicc wrote: > On 2014/07/14 02:55:01, Jeffrey Yasskin wrote: > > On ...
6 years, 5 months ago (2014-07-15 03:59:03 UTC) #5
Jeffrey Yasskin
I had to do some fairly unnatural things to get this test to run, so ...
6 years, 5 months ago (2014-07-16 23:14:58 UTC) #6
Jeffrey Yasskin
On 2014/07/16 23:14:58, Jeffrey Yasskin wrote: > I didn't need to change WorkerThread at all ...
6 years, 5 months ago (2014-07-16 23:31:07 UTC) #7
dominicc (has gone to gerrit)
Isn't this basically racy? Between workerContextStarted, and actually creating the context on the worker thread. ...
6 years, 5 months ago (2014-07-17 02:43:45 UTC) #8
Jeffrey Yasskin
On 2014/07/17 02:43:45, dominicc wrote: > Isn't this basically racy? Between workerContextStarted, and actually creating ...
6 years, 5 months ago (2014-07-17 16:19:33 UTC) #9
Jeffrey Yasskin
https://codereview.chromium.org/383063008/diff/100001/Source/web/tests/ServiceWorkerGlobalScopeProxyTest.cpp File Source/web/tests/ServiceWorkerGlobalScopeProxyTest.cpp (right): https://codereview.chromium.org/383063008/diff/100001/Source/web/tests/ServiceWorkerGlobalScopeProxyTest.cpp#newcode118 Source/web/tests/ServiceWorkerGlobalScopeProxyTest.cpp:118: Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests(); dcheng says that this call is probably the ...
6 years, 5 months ago (2014-07-17 18:32:09 UTC) #10
dominicc (has gone to gerrit)
The calls to evaluate in ServiceWorkerGlobalScope::create this relies on will be going away when the ...
6 years, 5 months ago (2014-07-19 01:08:49 UTC) #11
Jeffrey Yasskin
6 years, 5 months ago (2014-07-19 01:29:08 UTC) #12
On 2014/07/19 01:08:49, dominicc wrote:
> The calls to evaluate in ServiceWorkerGlobalScope::create this relies on will
be
> going away when the native Cache implementation lands...
> 
> LGTM to land this to keep moving, particularly since we have the test, but we
> may need to add the "v8 context created" protocol or wean callers from the
> context down the road.

Apps-on-ServiceWorkers aren't happening in the near term, so we don't need this
change anymore. Closing. Sorry for the wasted review time.

Powered by Google App Engine
This is Rietveld 408576698