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

Issue 868463004: ServiceWorker: add ServiceWorkerClients.claim() support (1/3). (Closed)

Created:
5 years, 11 months ago by xiang
Modified:
5 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: add ServiceWorkerClients.claim() support (1/3). This's the Blink side CL for initial ServiceWorkerClients.claim() support. ServiceWorkerClients passes promise resolver callback to worker client which will resolve/reject it after Chrome handles it. Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-claim (1/3): This (2/3): https://codereview.chromium.org/871853002/ (3/3): https://codereview.chromium.org/872593002/ BUG=450106 TEST=https://codereview.chromium.org/872593002/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189313

Patch Set 1 #

Patch Set 2 : change error type #

Total comments: 14

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : fix typo #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -0 lines) Patch
M Source/modules/serviceworkers/Clients.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerClients.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerClients.cpp View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerError.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
A public/platform/WebServiceWorkerClientsClaimCallbacks.h View 1 chunk +18 lines, -0 lines 0 comments Download
M public/platform/WebServiceWorkerError.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebServiceWorkerContextClient.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
xiang
Hi, PTAL, thanks.
5 years, 11 months ago (2015-01-23 04:57:20 UTC) #4
mlamouri (slow - plz ping)
Is there support for the feature from other vendors? https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/Clients.idl File Source/modules/serviceworkers/Clients.idl (right): https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/Clients.idl#newcode14 Source/modules/serviceworkers/Clients.idl:14: ...
5 years, 11 months ago (2015-01-23 10:08:08 UTC) #6
jsbell
this looks fine to me w/ mounir's comments, but falken should comment on how we ...
5 years, 11 months ago (2015-01-24 00:42:16 UTC) #7
jsbell
https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/ServiceWorkerError.cpp File Source/modules/serviceworkers/ServiceWorkerError.cpp (right): https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/ServiceWorkerError.cpp#newcode69 Source/modules/serviceworkers/ServiceWorkerError.cpp:69: return createException(InvalidStateError, "The Service Worker operation failed by invalid ...
5 years, 11 months ago (2015-01-24 01:15:02 UTC) #8
falken
https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/Clients.idl File Source/modules/serviceworkers/Clients.idl (right): https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/Clients.idl#newcode14 Source/modules/serviceworkers/Clients.idl:14: [CallWith=ScriptState] Promise claim(); On 2015/01/24 00:42:16, jsbell wrote: > ...
5 years, 11 months ago (2015-01-26 04:55:12 UTC) #9
xiang
Thanks all for the review & comments, CL updated. https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/ServiceWorkerClients.cpp File Source/modules/serviceworkers/ServiceWorkerClients.cpp (right): https://codereview.chromium.org/868463004/diff/20001/Source/modules/serviceworkers/ServiceWorkerClients.cpp#newcode82 Source/modules/serviceworkers/ServiceWorkerClients.cpp:82: ...
5 years, 11 months ago (2015-01-26 06:47:54 UTC) #10
mlamouri (slow - plz ping)
lgtm
5 years, 11 months ago (2015-01-26 09:10:58 UTC) #11
falken
lgtm 2 https://codereview.chromium.org/868463004/diff/40001/Source/modules/serviceworkers/ServiceWorkerClients.cpp File Source/modules/serviceworkers/ServiceWorkerClients.cpp (right): https://codereview.chromium.org/868463004/diff/40001/Source/modules/serviceworkers/ServiceWorkerClients.cpp#newcode80 Source/modules/serviceworkers/ServiceWorkerClients.cpp:80: // FIXME: May be null due to ...
5 years, 11 months ago (2015-01-27 03:25:19 UTC) #12
xiang
Thanks for the review. mkwst@ would you help to review: Source/web & public/ changes? Thanks. ...
5 years, 10 months ago (2015-01-28 05:57:49 UTC) #15
xiang
ping mkwst@, do you have time to take a look? Thanks.
5 years, 10 months ago (2015-01-29 09:30:58 UTC) #16
Mike West
LGTM, sorry for the delay.
5 years, 10 months ago (2015-01-29 11:50:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/868463004/80001
5 years, 10 months ago (2015-02-02 01:21:24 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 02:34:47 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189313

Powered by Google App Engine
This is Rietveld 408576698