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

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
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Expose registration within ServiceWorkerGlobalScope [2/3] This CL supports the step 1 and 2 described in the desing doc: https://docs.google.com/document/d/1qDGbMlwKOXxCRBlw9IirK8Qmna3JqvnO3Aogkfu9UJQ/edit?usp=sharing - Makes ServiceWorkerProviderContext available on both main/worker threads by the lock mechanism so that the context can retain a registration reference for the worker until the worker thread gets ready. - Creates registration object on the worker thread and sets it in ".registration" attribute on SWGlobalScope before evaluating the worker script. [1] Blink: https://codereview.chromium.org/811793002/ [2] Chromium: THIS PATCH [3] Blink: https://codereview.chromium.org/822593003/ BUG=437677 TEST=to be added by [3/3] Committed: https://crrev.com/2d92972b8b5e90fb3036fe67a2fc8b61a12abb91 Cr-Commit-Position: refs/heads/master@{#313044}

Patch Set 1 : #

Patch Set 2 : remove TODO comment about forwarding messages #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : add comment #

Patch Set 5 : fix rebase failure #

Patch Set 6 : add workaround for browser test failure #

Patch Set 7 : delete this if DeleteSoon() failed (fix LSAN failure on browser_tests) #

Patch Set 8 : remove dcheck #

Messages

Total messages: 32 (16 generated)
nhiroki
Hi, can you review this? Thanks!
5 years, 11 months ago (2015-01-19 01:59:10 UTC) #8
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
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
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
kinuko
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( I think there's a strong assumption that ...
5 years, 11 months ago (2015-01-22 08:14:00 UTC) #12
nhiroki
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
nhiroki
+mkwst@: Can you take a look at service_worker_message.h? Thanks!
5 years, 11 months ago (2015-01-22 09:10:47 UTC) #15
Mike West
IPC LGTM.
5 years, 11 months ago (2015-01-22 10:11:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849163002/180001
5 years, 11 months ago (2015-01-22 10:22:08 UTC) #18
commit-bot: I haz the power
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
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849163002/200001
5 years, 11 months ago (2015-01-22 11:28:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849163002/240001
5 years, 11 months ago (2015-01-22 23:05:13 UTC) #26
commit-bot: I haz the power
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
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849163002/280001
5 years, 11 months ago (2015-01-26 04:36:28 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:280001)
5 years, 11 months ago (2015-01-26 05:32:19 UTC) #31
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 05:33:07 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2d92972b8b5e90fb3036fe67a2fc8b61a12abb91
Cr-Commit-Position: refs/heads/master@{#313044}

Powered by Google App Engine
This is Rietveld 408576698