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

Issue 2867023002: [ServiceWorker] waitUntil() should wait until all promises got resolved/rejected. (Closed)

Created:
3 years, 7 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 7 months ago
Reviewers:
falken, kinuko, shimazu
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, blink-reviews-w3ctests_chromium.org, nhiroki, haraken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] waitUntil() should wait until all promises got resolved/rejected. Spec: https://w3c.github.io/ServiceWorker/#wait-until-method For multiple waitUntil() pending promises, even if some one got rejected while some others are still pending at the same time, we should continue waiting, until all pending promises completed(resolved or rejected). BUG=719850 TEST=blink_tests external/wpt/service-workers/service-worker/extendable-event-waituntil.https.html TBR=kinuko@chromium.org Review-Url: https://codereview.chromium.org/2867023002 Cr-Commit-Position: refs/heads/master@{#470828} Committed: https://chromium.googlesource.com/chromium/src/+/06f33f6fa8d71e31838103a0e12f95e8420510d2

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove old FIXME #

Total comments: 9

Patch Set 3 : Clean up #

Total comments: 11

Patch Set 4 : More clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -32 lines) Patch
D third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/extendable-event-waituntil.https-expected.txt View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h View 1 2 3 4 chunks +25 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 2 3 4 chunks +21 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (33 generated)
leonhsl(Using Gerrit)
PTAL, Thanks! https://codereview.chromium.org/2867023002/diff/1/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/1/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode147 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:147: // FIXME: Propagate error message to the ...
3 years, 7 months ago (2017-05-08 10:33:48 UTC) #5
falken
I don't really understand how the code change is causing the behavior change. It looks ...
3 years, 7 months ago (2017-05-09 04:00:25 UTC) #12
leonhsl(Using Gerrit)
Thanks a lot for review! I created a new bug and updated CL description with ...
3 years, 7 months ago (2017-05-09 07:26:52 UTC) #16
falken
Thanks for working on this and for creating the new bug. https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h (right): ...
3 years, 7 months ago (2017-05-09 08:07:31 UTC) #17
falken
https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode72 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:72: observer_->DecrementPendingActivity(); Looking at this more, it looks like things ...
3 years, 7 months ago (2017-05-09 08:29:02 UTC) #18
falken
Sorry for the constant comments. https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode72 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:72: observer_->DecrementPendingActivity(); On 2017/05/09 08:29:02, ...
3 years, 7 months ago (2017-05-09 09:02:54 UTC) #19
leonhsl(Using Gerrit)
On 2017/05/09 08:29:02, falken wrote: > https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp > File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp > (right): > > https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode72 ...
3 years, 7 months ago (2017-05-09 09:15:36 UTC) #20
leonhsl(Using Gerrit)
On 2017/05/09 09:02:54, falken wrote: > Sorry for the constant comments. > > https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp > ...
3 years, 7 months ago (2017-05-09 09:20:12 UTC) #21
shimazu
On 2017/05/09 09:15:36, leonhsl wrote: > On 2017/05/09 08:29:02, falken wrote: > > > https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp ...
3 years, 7 months ago (2017-05-09 14:22:05 UTC) #24
falken
On 2017/05/09 14:22:05, shimazu wrote: > On 2017/05/09 09:15:36, leonhsl wrote: > > On 2017/05/09 ...
3 years, 7 months ago (2017-05-09 23:58:43 UTC) #25
falken
On 2017/05/09 09:20:12, leonhsl wrote: > On 2017/05/09 09:02:54, falken wrote: > > Sorry for ...
3 years, 7 months ago (2017-05-09 23:59:57 UTC) #26
leonhsl(Using Gerrit)
Uploaded ps#3, PTAnL, Thanks. https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/20001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode72 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:72: observer_->DecrementPendingActivity(); On 2017/05/09 08:29:02, falken ...
3 years, 7 months ago (2017-05-10 05:03:35 UTC) #29
shimazu
lgtm with nits. Please wait for falken's comments also. https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h (right): https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h#newcode77 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h:77: ...
3 years, 7 months ago (2017-05-10 05:20:14 UTC) #30
falken
This looks pretty good. https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode143 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:143: void WaitUntilObserver::OnPromiseCompleted(bool rejected) { OnPromiseSettled ...
3 years, 7 months ago (2017-05-10 05:25:13 UTC) #31
falken
https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h (right): https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h#newcode78 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h:78: EventDispatchState event_dispatch_state_ = kInitial; On 2017/05/10 05:20:14, shimazu wrote: ...
3 years, 7 months ago (2017-05-10 05:26:52 UTC) #32
leonhsl(Using Gerrit)
Uploaded ps#4 to address comments, PTAnL, Thanks. https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2867023002/diff/40001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode143 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:143: void WaitUntilObserver::OnPromiseCompleted(bool ...
3 years, 7 months ago (2017-05-10 07:07:52 UTC) #35
falken
lgtm, thanks!
3 years, 7 months ago (2017-05-10 07:11:09 UTC) #36
leonhsl(Using Gerrit)
Thanks all for review, and let me TBR kinuko@ for the trivial change(code comments only) ...
3 years, 7 months ago (2017-05-10 08:42:57 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867023002/60001
3 years, 7 months ago (2017-05-10 08:44:26 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/449759)
3 years, 7 months ago (2017-05-10 11:24:42 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867023002/60001
3 years, 7 months ago (2017-05-10 13:14:47 UTC) #48
kinuko
lgtm
3 years, 7 months ago (2017-05-10 14:39:56 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/449998)
3 years, 7 months ago (2017-05-10 15:50:28 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867023002/60001
3 years, 7 months ago (2017-05-11 00:20:50 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/451161)
3 years, 7 months ago (2017-05-11 03:23:18 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867023002/60001
3 years, 7 months ago (2017-05-11 03:40:40 UTC) #57
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 05:47:12 UTC) #60
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/06f33f6fa8d71e31838103a0e12f...

Powered by Google App Engine
This is Rietveld 408576698