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

Issue 476043002: ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (1/3) (Closed)

Created:
6 years, 4 months ago by nhiroki
Modified:
6 years, 3 months ago
Reviewers:
michaeln, tkent, horo
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, jamesr, tzik, serviceworker-reviews, abarth-chromium, falken, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Make '.ready' return a promise to be resolved with ServiceWorkerRegistration (1/3) This change makes navigator.serviceWorker.ready return a promise to be resolved with ServiceWorkerRegistration object instead of ServiceWorker object. Tests for '.ready' (ie. 'ready.html') are now disabled and those will be re-enabled by the 3rd patch. 1) Blink: THIS PATCH 2) Chromium: https://codereview.chromium.org/477593007/ 3) Blink: https://codereview.chromium.org/532653002/ Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-container BUG=399533 TEST=run_webkit_tests.py --debug http/tests/serviceworker/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181435

Patch Set 1 : #

Patch Set 2 : fix win build #

Total comments: 8

Patch Set 3 : address michaeln@'s comments #

Patch Set 4 : remove checkReadyChanged() #

Total comments: 2

Patch Set 5 : update trace() #

Patch Set 6 : rebase on 478693005 (Ship Oilpan for serviceworkers/) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -28 lines) Patch
M Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 4 5 3 chunks +26 lines, -20 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M public/platform/WebServiceWorkerProviderClient.h View 1 2 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
nhiroki
Hi, can you review this? Thanks.
6 years, 3 months ago (2014-09-02 10:30:53 UTC) #2
michaeln
lgtm https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.h File Source/modules/serviceworkers/ServiceWorkerContainer.h (right): https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.h#newcode83 Source/modules/serviceworkers/ServiceWorkerContainer.h:83: virtual void setReady(WebServiceWorkerRegistration*) OVERRIDE; Should this method be ...
6 years, 3 months ago (2014-09-03 22:17:48 UTC) #3
michaeln
https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode225 Source/modules/serviceworkers/ServiceWorkerContainer.cpp:225: void ServiceWorkerContainer::setReady(WebServiceWorkerRegistration* registration) should there be an assertion here ...
6 years, 3 months ago (2014-09-03 22:27:29 UTC) #4
nhiroki
Thank you for reviewing. Can you check my reply in ServiceWorkerContainer.cpp? https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): ...
6 years, 3 months ago (2014-09-04 08:55:59 UTC) #5
nhiroki
https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode232 Source/modules/serviceworkers/ServiceWorkerContainer.cpp:232: RefPtrWillBeRawPtr<ServiceWorkerRegistration> previousReadyRegistration = m_readyRegistration; On 2014/09/04 08:55:58, nhiroki wrote: ...
6 years, 3 months ago (2014-09-04 10:45:10 UTC) #6
nhiroki
https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp File Source/modules/serviceworkers/ServiceWorkerContainer.cpp (right): https://codereview.chromium.org/476043002/diff/160001/Source/modules/serviceworkers/ServiceWorkerContainer.cpp#newcode232 Source/modules/serviceworkers/ServiceWorkerContainer.cpp:232: RefPtrWillBeRawPtr<ServiceWorkerRegistration> previousReadyRegistration = m_readyRegistration; On 2014/09/04 10:45:10, nhiroki wrote: ...
6 years, 3 months ago (2014-09-04 13:06:57 UTC) #7
nhiroki
+tkent@: Can you review this as an owner of public/platform? Thanks.
6 years, 3 months ago (2014-09-04 13:11:01 UTC) #9
horo
lgtm
6 years, 3 months ago (2014-09-04 13:25:30 UTC) #10
michaeln
lgtm 2
6 years, 3 months ago (2014-09-04 22:48:57 UTC) #11
tkent
https://codereview.chromium.org/476043002/diff/190001/Source/modules/serviceworkers/ServiceWorkerContainer.h File Source/modules/serviceworkers/ServiceWorkerContainer.h (right): https://codereview.chromium.org/476043002/diff/190001/Source/modules/serviceworkers/ServiceWorkerContainer.h#newcode98 Source/modules/serviceworkers/ServiceWorkerContainer.h:98: RefPtrWillBeMember<ServiceWorkerRegistration> m_readyRegistration; Please update ServiceWorkerContainer::trace().
6 years, 3 months ago (2014-09-05 02:01:25 UTC) #12
nhiroki
https://codereview.chromium.org/476043002/diff/190001/Source/modules/serviceworkers/ServiceWorkerContainer.h File Source/modules/serviceworkers/ServiceWorkerContainer.h (right): https://codereview.chromium.org/476043002/diff/190001/Source/modules/serviceworkers/ServiceWorkerContainer.h#newcode98 Source/modules/serviceworkers/ServiceWorkerContainer.h:98: RefPtrWillBeMember<ServiceWorkerRegistration> m_readyRegistration; On 2014/09/05 02:01:25, tkent wrote: > Please ...
6 years, 3 months ago (2014-09-05 02:23:05 UTC) #13
tkent
lgtm
6 years, 3 months ago (2014-09-05 02:30:54 UTC) #14
nhiroki
Thank you for reviewing! FYI: Rebased on the CL to ship Oilpan for serviceworkers/ (https://codereview.chromium.org/478693005/). ...
6 years, 3 months ago (2014-09-05 04:06:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/476043002/230001
6 years, 3 months ago (2014-09-05 05:10:58 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-05 05:16:44 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:230001) as 181435

Powered by Google App Engine
This is Rietveld 408576698