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

Issue 352423005: Add ServiceWorker InstallPhaseEvent.waitUntil() layout test. (Closed)

Created:
6 years, 5 months ago by xiang
Modified:
6 years, 5 months ago
CC:
alecflett+watch_chromium.org, blink-reviews, 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
Project:
blink
Visibility:
Public.

Description

Add ServiceWorker InstallPhaseEvent.waitUntil() layout test. Add InstallPhaseEvent layout tests for both "install" and "activate" events. Fix the rejection precedence when multiple promises waiting on an event. Rename the "active" state to "activated" and "deactivated" state to "redundant", see: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state. BUG=375132 TEST=http/tests/serviceworker/install-phase-event-waituntil.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177461

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : review update #

Total comments: 15

Patch Set 4 : review update 2 #

Total comments: 1

Patch Set 5 : add FIXME #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -39 lines) Patch
M LayoutTests/http/tests/serviceworker/activation-after-registration.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/controller-on-load.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/controller-on-reload.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-event.html View 1 5 chunks +5 lines, -5 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/postmessage-to-client.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/ready-controlled-document.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/registration-end-to-end.html View 1 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/registration-events.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/request-end-to-end.html View 1 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/install-phase-event-waituntil.js View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/service-worker-gc.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/state.html View 1 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/unregister-controller.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorker.cpp View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M Source/modules/serviceworkers/WaitUntilObserver.cpp View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M public/platform/WebServiceWorkerState.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
xiang
The rejection test depends on CL: https://codereview.chromium.org/355163002/. PTAL, thanks.
6 years, 5 months ago (2014-06-27 12:13:56 UTC) #1
xiang
There maybe a spec mismatch for waitUntil() impl, when multiple waitUntil() calls are made. In ...
6 years, 5 months ago (2014-06-30 03:15:46 UTC) #2
falken
Some questions/comments. I'm also not sure I totally understand your comment #2 about multiple waitUntil. ...
6 years, 5 months ago (2014-06-30 04:35:31 UTC) #3
falken
On 2014/06/30 04:35:31, falken wrote: > Some questions/comments. > > I'm also not sure I ...
6 years, 5 months ago (2014-06-30 04:42:16 UTC) #4
xiang
https://codereview.chromium.org/352423005/diff/20001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html File LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html (right): https://codereview.chromium.org/352423005/diff/20001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html#newcode8 LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html:8: var worker_script = 'resources/install-phase-event-waituntil.js'; On 2014/06/30 04:35:31, falken wrote: ...
6 years, 5 months ago (2014-06-30 06:37:11 UTC) #5
xiang
On 2014/06/30 04:35:31, falken wrote: > Some questions/comments. > > I'm also not sure I ...
6 years, 5 months ago (2014-06-30 06:59:40 UTC) #6
jsbell
lgtm overall, with questions, suggestions, and nits. https://codereview.chromium.org/352423005/diff/40001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html File LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html (right): https://codereview.chromium.org/352423005/diff/40001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html#newcode30 LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html:30: var t ...
6 years, 5 months ago (2014-07-01 16:16:49 UTC) #7
xiang
Thanks a lot for the review. https://codereview.chromium.org/352423005/diff/40001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html File LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html (right): https://codereview.chromium.org/352423005/diff/40001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html#newcode30 LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html:30: var t = ...
6 years, 5 months ago (2014-07-02 05:10:43 UTC) #8
xiang
On 2014/07/02 05:10:43, xiang wrote: > Thanks a lot for the review. > > https://codereview.chromium.org/352423005/diff/40001/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html ...
6 years, 5 months ago (2014-07-02 08:17:59 UTC) #9
jsbell
https://codereview.chromium.org/352423005/diff/60001/public/platform/WebServiceWorkerState.h File public/platform/WebServiceWorkerState.h (right): https://codereview.chromium.org/352423005/diff/60001/public/platform/WebServiceWorkerState.h#newcode18 public/platform/WebServiceWorkerState.h:18: WebServiceWorkerStateActive = WebServiceWorkerStateActivated, Please add a FIXME to remove ...
6 years, 5 months ago (2014-07-02 17:55:49 UTC) #10
xiang
On 2014/07/02 17:55:49, jsbell wrote: > https://codereview.chromium.org/352423005/diff/60001/public/platform/WebServiceWorkerState.h > File public/platform/WebServiceWorkerState.h (right): > > https://codereview.chromium.org/352423005/diff/60001/public/platform/WebServiceWorkerState.h#newcode18 > ...
6 years, 5 months ago (2014-07-03 05:55:29 UTC) #11
abarth-chromium
public/ LGTM (didn't look at the rest)
6 years, 5 months ago (2014-07-03 06:35:04 UTC) #12
xiang
The CQ bit was checked by xiang.long@intel.com
6 years, 5 months ago (2014-07-03 07:07:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiang.long@intel.com/352423005/80001
6 years, 5 months ago (2014-07-03 07:08:04 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-03 08:49:18 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 09:25:21 UTC) #16
Message was sent while issue was closed.
Change committed as 177461

Powered by Google App Engine
This is Rietveld 408576698