5 years, 11 months ago
(2015-01-19 01:59:10 UTC)
#8
Hi, can you review this? Thanks!
nhiroki
On 2015/01/19 01:59:10, nhiroki wrote: > Hi, can you review this? Thanks! Hmmm... this may ...
5 years, 11 months ago
(2015-01-19 06:27:04 UTC)
#9
On 2015/01/19 01:59:10, nhiroki wrote:
> Hi, can you review this? Thanks!
Hmmm... this may need more modifications to support the step 3 described in the
CL description, so let me suspend this for now.
nhiroki
Let me resume this CL... can you take another look? On 2015/01/19 06:27:04, nhiroki wrote: ...
5 years, 11 months ago
(2015-01-20 10:57:03 UTC)
#10
Let me resume this CL... can you take another look?
On 2015/01/19 06:27:04, nhiroki wrote:
> On 2015/01/19 01:59:10, nhiroki wrote:
> > Hi, can you review this? Thanks!
>
> Hmmm... this may need more modifications to support the step 3 described in
the
> CL description, so let me suspend this for now.
I'll modify the step 3 ("forwarding the worker/registration events from the main
thread to the worker thread"). Instead of forwarding messages, the browser
process will directly send messages to the worker thread. Please see subsequent
CLs[1, 2] for more details. I'll update the design doc soon.
[1] https://codereview.chromium.org/825383004/
[2] https://codereview.chromium.org/855383006/
kinuko
lgtm https://codereview.chromium.org/849163002/diff/140001/content/child/service_worker/service_worker_provider_context.h File content/child/service_worker/service_worker_provider_context.h (right): https://codereview.chromium.org/849163002/diff/140001/content/child/service_worker/service_worker_provider_context.h#newcode96 content/child/service_worker/service_worker_provider_context.h:96: base::Lock lock_; It's unfortunate that we still need ...
5 years, 11 months ago
(2015-01-22 08:05:45 UTC)
#11
Thank you for reviewing! https://codereview.chromium.org/849163002/diff/140001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/849163002/diff/140001/content/child/service_worker/service_worker_dispatcher.cc#newcode305 content/child/service_worker/service_worker_dispatcher.cc:305: void ServiceWorkerDispatcher::OnAssociateRegistrationWithServiceWorker( On 2015/01/22 08:14:00, ...
5 years, 11 months ago
(2015-01-22 09:09:16 UTC)
#13
Thank you for reviewing!
https://codereview.chromium.org/849163002/diff/140001/content/child/service_w...
File content/child/service_worker/service_worker_dispatcher.cc (right):
https://codereview.chromium.org/849163002/diff/140001/content/child/service_w...
content/child/service_worker/service_worker_dispatcher.cc:305: void
ServiceWorkerDispatcher::OnAssociateRegistrationWithServiceWorker(
On 2015/01/22 08:14:00, kinuko wrote:
> I think there's a strong assumption that this should arrive before the worker
> context starts (and in the current implementation it should be guaranteed as
> this message should come before msgs for script loading), right?
That's right.
Ideally, these info and attrs are pushed into EmbeddedWorkerMsg_StartWorker
message and directly handled by EmbeddedWorkerContextClient without the
indirection of ServiceWorkerProviderContext, but probably that needs a bit wide
and complex changes in the browser-side (how to get a registration handle before
creating SWNetworkProvider, etc). I'll revisit it later.
> Could we add a brief comment about that?
Added.
https://codereview.chromium.org/849163002/diff/140001/content/child/service_w...
File content/child/service_worker/service_worker_provider_context.h (right):
https://codereview.chromium.org/849163002/diff/140001/content/child/service_w...
content/child/service_worker/service_worker_provider_context.h:96: base::Lock
lock_;
On 2015/01/22 08:05:44, kinuko wrote:
> It's unfortunate that we still need a lock while the fields aren't really racy
> any more... I really hoped there could be a point where we can simply hand
over
> the context from main thread to worker thread.
Piggyback on StartWorker message could be a solution (see my other comment).
I'll try it later.
https://codereview.chromium.org/849163002/diff/140001/content/renderer/servic...
File content/renderer/service_worker/embedded_worker_context_client.cc (right):
https://codereview.chromium.org/849163002/diff/140001/content/renderer/servic...
content/renderer/service_worker/embedded_worker_context_client.cc:444:
provider_context_->GetVersionAttributes();
On 2015/01/22 08:05:44, kinuko wrote:
> It feels it's a bit odd to call two locked methods (registration() and
> GetVersionAttributes()) separately, though it should be ok
Agree. I'll make a followup patch (probably we can merge them?)
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/116501) android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/34969)
5 years, 11 months ago
(2015-01-22 10:31:41 UTC)
#20
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/27667)
5 years, 11 months ago
(2015-01-23 00:28:14 UTC)
#28
Issue 849163002: ServiceWorker: Expose registration within ServiceWorkerGlobalScope [2/3]
(Closed)
Created 5 years, 11 months ago by nhiroki
Modified 5 years, 11 months ago
Reviewers: kinuko, falken, Mike West
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 6