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

Issue 531423002: ServiceWorker: Clean up fetch-event.html (Closed)

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

Description

ServiceWorker: Clean up fetch-event.html This change... - removes unnecessary 'wait_for_update' calls because a register promise is resolved with a registration object that has an installing worker. - removes 't.step_func' from promise chains. - unloads iframes gracefully. BUG=401381 TEST=run_webkit_tests.py --debug http/tests/serviceworker/fetch-event.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181465

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebase #

Patch Set 3 : introduce wait_fo_activated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -77 lines) Patch
M LayoutTests/http/tests/serviceworker/fetch-event.html View 1 2 4 chunks +41 lines, -77 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
nhiroki
PTAL
6 years, 3 months ago (2014-09-03 05:26:56 UTC) #2
horo
https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html File LayoutTests/http/tests/serviceworker/fetch-event.html (right): https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html#newcode19 LayoutTests/http/tests/serviceworker/fetch-event.html:19: return wait_for_state(t, registration.installing, 'activated'); How about introducing wait_for_activated(t, registration)?
6 years, 3 months ago (2014-09-03 06:13:49 UTC) #3
nhiroki
https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html File LayoutTests/http/tests/serviceworker/fetch-event.html (right): https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html#newcode19 LayoutTests/http/tests/serviceworker/fetch-event.html:19: return wait_for_state(t, registration.installing, 'activated'); On 2014/09/03 06:13:48, horo wrote: ...
6 years, 3 months ago (2014-09-04 06:47:09 UTC) #4
horo
https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html File LayoutTests/http/tests/serviceworker/fetch-event.html (right): https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html#newcode19 LayoutTests/http/tests/serviceworker/fetch-event.html:19: return wait_for_state(t, registration.installing, 'activated'); On 2014/09/04 06:47:09, nhiroki wrote: ...
6 years, 3 months ago (2014-09-04 09:07:13 UTC) #5
nhiroki
https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html File LayoutTests/http/tests/serviceworker/fetch-event.html (right): https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html#newcode19 LayoutTests/http/tests/serviceworker/fetch-event.html:19: return wait_for_state(t, registration.installing, 'activated'); On 2014/09/04 09:07:13, horo wrote: ...
6 years, 3 months ago (2014-09-04 09:20:41 UTC) #6
nhiroki
horo-san, can you take another look? https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html File LayoutTests/http/tests/serviceworker/fetch-event.html (right): https://codereview.chromium.org/531423002/diff/1/LayoutTests/http/tests/serviceworker/fetch-event.html#newcode19 LayoutTests/http/tests/serviceworker/fetch-event.html:19: return wait_for_state(t, registration.installing, ...
6 years, 3 months ago (2014-09-05 07:42:09 UTC) #8
horo
lgtm. Thank you.
6 years, 3 months ago (2014-09-05 10:47:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/531423002/60001
6 years, 3 months ago (2014-09-05 10:57:35 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-05 11:02:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as 181465

Powered by Google App Engine
This is Rietveld 408576698