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

Issue 2877543003: [ServiceWorker] Allow waitUntil to be called multiple times asynchronously (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] Allow waitUntil to be called multiple times asynchronously Spec: https://w3c.github.io/ServiceWorker/#dom-extendableevent-waituntil BUG=621440 TEST=blink_tests external/wpt/service-workers/service-worker/extendable-event-async-waituntil.https.html Review-Url: https://codereview.chromium.org/2877543003 Cr-Commit-Position: refs/heads/master@{#474630} Committed: https://chromium.googlesource.com/chromium/src/+/eaf348dc9864d8073fe01472a91c33f21e3ec4b6

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : Handle microtask cases #

Total comments: 2

Patch Set 4 : Enqueue new microtask #

Patch Set 5 : Fix other tests using waitUntil incorrectly #

Total comments: 9

Patch Set 6 : Add EventDispatcherState::kDispatching #

Total comments: 2

Patch Set 7 : Address comments from shimazu@ #

Total comments: 22

Patch Set 8 : Part of comments from falken@ #

Total comments: 4

Patch Set 9 : Let RespondWithObserver call WaitUntilObserver::WaitUntil to add extend lifetime promise #

Total comments: 14

Patch Set 10 : Address comments from falken@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -131 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/extendable-event-async-waituntil.https.html View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/extendable-event-async-waituntil.https-expected.txt View 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/extendable-event-async-waituntil.js View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/windowclient-navigate-worker.js View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.cpp View 2 3 4 5 6 7 8 9 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -59 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h View 1 2 3 4 5 6 7 8 9 4 chunks +30 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +109 lines, -33 lines 0 comments Download

Messages

Total messages: 93 (66 generated)
leonhsl(Using Gerrit)
This CL is incomplete now because 2 tests related with microtasks in extendable-event-async-waituntil.https.html are still ...
3 years, 7 months ago (2017-05-12 09:38:58 UTC) #8
falken
On 2017/05/12 09:38:58, leonhsl wrote: > This CL is incomplete now because 2 tests related ...
3 years, 7 months ago (2017-05-15 06:49:32 UTC) #9
leonhsl(Using Gerrit)
Hi, falken@, I tried my best for now and uploaded ps#3, which modified WaitUntilObserver impl ...
3 years, 7 months ago (2017-05-18 08:40:31 UTC) #12
falken
On 2017/05/18 08:40:31, leonhsl wrote: > Hi, falken@, I tried my best for now and ...
3 years, 7 months ago (2017-05-19 07:41:24 UTC) #15
falken
On 2017/05/19 07:41:24, falken wrote: > On 2017/05/18 08:40:31, leonhsl wrote: > > Hi, falken@, ...
3 years, 7 months ago (2017-05-19 07:45:42 UTC) #16
leonhsl(Using Gerrit)
On 2017/05/19 07:45:42, falken wrote: > On 2017/05/19 07:41:24, falken wrote: > > On 2017/05/18 ...
3 years, 7 months ago (2017-05-19 08:16:25 UTC) #17
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/2877543003/60001
3 years, 7 months ago (2017-05-19 14:54:18 UTC) #23
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-05-19 14:54:21 UTC) #25
leonhsl(Using Gerrit)
I think ps#5 is ready for formal review now, thanks a lot for help and ...
3 years, 7 months ago (2017-05-21 10:40:56 UTC) #42
shimazu
https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h File third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h#newcode66 third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h:66: bool created_by_script_; const? https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode132 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:132: ...
3 years, 7 months ago (2017-05-22 03:48:41 UTC) #43
leonhsl(Using Gerrit)
Thanks a lot for review! https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h File third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h#newcode66 third_party/WebKit/Source/modules/serviceworkers/ExtendableEvent.h:66: bool created_by_script_; On 2017/05/22 ...
3 years, 7 months ago (2017-05-22 05:01:43 UTC) #44
shimazu
https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode132 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:132: v8::MicrotasksScope::IsRunningMicrotasks(script_state->GetIsolate())) { On 2017/05/22 05:01:43, leonhsl wrote: > On ...
3 years, 7 months ago (2017-05-22 08:09:06 UTC) #45
leonhsl(Using Gerrit)
Thanks a lot for review! https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode83 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:83: WrapPersistent(observer_.Get()))); I'm not so ...
3 years, 7 months ago (2017-05-22 13:23:02 UTC) #46
falken
On 2017/05/22 13:23:02, leonhsl wrote: > Thanks a lot for review! > > https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp > ...
3 years, 7 months ago (2017-05-23 00:52:08 UTC) #47
leonhsl(Using Gerrit)
On 2017/05/23 00:52:08, falken wrote: > On 2017/05/22 13:23:02, leonhsl wrote: > > Thanks a ...
3 years, 7 months ago (2017-05-23 01:05:06 UTC) #48
shimazu
On 2017/05/23 01:05:06, leonhsl wrote: > On 2017/05/23 00:52:08, falken wrote: > > On 2017/05/22 ...
3 years, 7 months ago (2017-05-23 01:41:09 UTC) #49
leonhsl(Using Gerrit)
Thank you for all the help! Uploaded ps#6, PTAnL, Thanks. I think kInitial indicates the ...
3 years, 7 months ago (2017-05-23 07:48:03 UTC) #52
shimazu
lgtm with some comment. Please wait for falken's comment also. https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode83 ...
3 years, 7 months ago (2017-05-23 09:08:43 UTC) #55
leonhsl(Using Gerrit)
https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/120001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode83 third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp:83: WrapPersistent(observer_.Get()))); On 2017/05/23 09:08:43, shimazu wrote: > On 2017/05/22 ...
3 years, 7 months ago (2017-05-23 09:40:19 UTC) #58
falken
Thanks for the patch. This is looking pretty good. Also +kinuko in case you have ...
3 years, 7 months ago (2017-05-24 08:24:19 UTC) #66
leonhsl(Using Gerrit)
Thanks a lot for review! https://codereview.chromium.org/2877543003/diff/160001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/extendable-event-async-waituntil.js File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/extendable-event-async-waituntil.js (right): https://codereview.chromium.org/2877543003/diff/160001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/extendable-event-async-waituntil.js#newcode64 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/extendable-event-async-waituntil.js:64: })); On 2017/05/24 08:24:18, ...
3 years, 7 months ago (2017-05-25 00:16:40 UTC) #69
kinuko
lgtm tricky, but looks like this is doing what's expected. https://codereview.chromium.org/2877543003/diff/180001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp File third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp (right): https://codereview.chromium.org/2877543003/diff/180001/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.cpp#newcode142 ...
3 years, 7 months ago (2017-05-25 01:45:03 UTC) #70
leonhsl(Using Gerrit)
Thank you all very much for your kindly review! At the same time I have ...
3 years, 7 months ago (2017-05-25 06:43:55 UTC) #78
falken
lgtm. Thanks for sticking with this patch. It looks great. I'm glad the new tests ...
3 years, 7 months ago (2017-05-25 07:23:24 UTC) #79
leonhsl(Using Gerrit)
Uploaded ps#10, almost all changes are for code comments, so I'd like to send it ...
3 years, 7 months ago (2017-05-25 10:11:36 UTC) #87
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/2877543003/260001
3 years, 7 months ago (2017-05-25 10:12:08 UTC) #90
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 11:43:58 UTC) #93
Message was sent while issue was closed.
Committed patchset #10 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/eaf348dc9864d8073fe01472a91c...

Powered by Google App Engine
This is Rietveld 408576698