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

Issue 472293002: Don't use ServiceWorkerContainer.unregister in service_worker_unregister_and_register (Closed)

Created:
6 years, 4 months ago by falken
Modified:
6 years, 4 months ago
Reviewers:
nhiroki
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, horo+watch_chromium.org
Project:
blink
Visibility:
Public.

Description

Don't use ServiceWorkerContainer.unregister in service_worker_unregister_and_register Another step toward removing the deprecated ServiceWorkerContainer.unregister. service_worker_unregister_and_register is the biggest consumer of it in our tests. Now to unregister, the function first registers at that scope to get a registration, then calls unregister on it. This only works with registrations that cleanly install, which is the most common use case. BUG=404064 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180426

Patch Set 1 #

Total comments: 6

Patch Set 2 : sync #

Patch Set 3 : review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -15 lines) Patch
M LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html View 1 2 1 chunk +15 lines, -1 line 0 comments Download
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 2 1 chunk +15 lines, -12 lines 1 comment Download
M LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
falken
PTAL https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html File LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html (right): https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html#newcode26 LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html:26: url_test('with-fragment', 'resources/worker-no-op.js#ref'); Somehow this patch tickled the flakiness ...
6 years, 4 months ago (2014-08-15 12:17:08 UTC) #1
nhiroki
Thank you for working on this! LGTM https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html File LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html (right): https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html#newcode8 LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html:8: // don't ...
6 years, 4 months ago (2014-08-18 01:33:17 UTC) #2
falken
Thanks! https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html File LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html (right): https://codereview.chromium.org/472293002/diff/1/LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html#newcode8 LayoutTests/http/tests/serviceworker/install-phase-event-waituntil.html:8: // don't install succesfully. On 2014/08/18 01:33:17, nhiroki ...
6 years, 4 months ago (2014-08-18 05:01:06 UTC) #3
falken
The CQ bit was checked by falken@chromium.org
6 years, 4 months ago (2014-08-18 05:01:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/472293002/40001
6 years, 4 months ago (2014-08-18 05:01:56 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 06:00:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (40001) as 180426

Powered by Google App Engine
This is Rietveld 408576698