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

Issue 362123003: ServiceWorker: unregister's scope argument should be optional (Closed)

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

Description

ServiceWorker: unregister's scope argument should be optional Bring implementation in line with the latest spec edits: the |scope| argument to unregister() should be optional and default to '/*'. R=dominicc@chromium.org,michaeln@chromium.org,falken@chromium.org BUG=388044 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178034

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rework test #

Total comments: 7

Patch Set 3 : Reformated test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -53 lines) Patch
M LayoutTests/http/tests/serviceworker/resources/test-helpers.js View 1 1 chunk +9 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/unregister.html View 1 2 1 chunk +57 lines, -51 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.idl View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
jsbell
dominicc@, falken@, michael@ - please take a look? Feel free to CQ if you like ...
6 years, 5 months ago (2014-07-01 20:18:07 UTC) #1
michaeln
https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode84 LayoutTests/http/tests/serviceworker/unregister.html:84: 'unregistered worker should not override content'); i think this ...
6 years, 5 months ago (2014-07-01 21:14:03 UTC) #2
jsbell
https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode84 LayoutTests/http/tests/serviceworker/unregister.html:84: 'unregistered worker should not override content'); On 2014/07/01 21:14:03, ...
6 years, 5 months ago (2014-07-02 00:18:50 UTC) #3
dominicc (has gone to gerrit)
https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode66 LayoutTests/http/tests/serviceworker/unregister.html:66: service_worker_unregister_and_register(t, 'resources/simple-intercept-worker.js', '/*') The line wrapping in this addition ...
6 years, 5 months ago (2014-07-02 02:10:51 UTC) #4
jsbell
https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode66 LayoutTests/http/tests/serviceworker/unregister.html:66: service_worker_unregister_and_register(t, 'resources/simple-intercept-worker.js', '/*') On 2014/07/02 02:10:51, dominicc wrote: > ...
6 years, 5 months ago (2014-07-02 18:44:22 UTC) #5
michaeln
https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode84 LayoutTests/http/tests/serviceworker/unregister.html:84: 'unregistered worker should not override content'); > It appears ...
6 years, 5 months ago (2014-07-02 19:03:34 UTC) #6
jsbell
On 2014/07/02 19:03:34, michaeln wrote: > https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html > File LayoutTests/http/tests/serviceworker/unregister.html (right): > > https://codereview.chromium.org/362123003/diff/1/LayoutTests/http/tests/serviceworker/unregister.html#newcode84 > ...
6 years, 5 months ago (2014-07-02 19:24:11 UTC) #7
jsbell
Also, uploaded the chromium fix (and test) to: https://codereview.chromium.org/369693002 ... assuming we get consensus that ...
6 years, 5 months ago (2014-07-03 00:01:52 UTC) #8
dominicc (has gone to gerrit)
A few comments inline. I'm not sold the spec is wrong on the redundant-but-controlling thing, ...
6 years, 5 months ago (2014-07-03 04:44:35 UTC) #9
jsbell
Long weekend here in the US so not touching this for several more days. Thanks ...
6 years, 5 months ago (2014-07-03 05:16:13 UTC) #10
jsbell
On 2014/07/03 04:44:35, dominicc wrote: > I'm not sold the spec is wrong on the ...
6 years, 5 months ago (2014-07-03 05:19:16 UTC) #11
dominicc (has gone to gerrit)
On 2014/07/03 05:19:16, jsbell wrote: > On 2014/07/03 04:44:35, dominicc wrote: > > I'm not ...
6 years, 5 months ago (2014-07-10 06:19:08 UTC) #12
dominicc (has gone to gerrit)
Oops. Plus some comments. https://codereview.chromium.org/362123003/diff/20001/LayoutTests/http/tests/serviceworker/unregister.html File LayoutTests/http/tests/serviceworker/unregister.html (right): https://codereview.chromium.org/362123003/diff/20001/LayoutTests/http/tests/serviceworker/unregister.html#newcode62 LayoutTests/http/tests/serviceworker/unregister.html:62: var statePromise; state_promise https://codereview.chromium.org/362123003/diff/20001/LayoutTests/http/tests/serviceworker/unregister.html#newcode63 LayoutTests/http/tests/serviceworker/unregister.html:63: ...
6 years, 5 months ago (2014-07-10 06:19:37 UTC) #13
jsbell
Yay, falken's change to make unregister move the state of an active worker to 'redundant' ...
6 years, 5 months ago (2014-07-11 19:03:09 UTC) #14
dominicc (has gone to gerrit)
On 2014/07/11 19:03:09, jsbell wrote: > Yay, falken's change to make unregister move the state ...
6 years, 5 months ago (2014-07-14 06:41:02 UTC) #15
dominicc (has gone to gerrit)
The CQ bit was checked by dominicc@chromium.org
6 years, 5 months ago (2014-07-14 06:41:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/362123003/40001
6 years, 5 months ago (2014-07-14 06:41:56 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-14 07:44:27 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 08:43:58 UTC) #19
Message was sent while issue was closed.
Change committed as 178034

Powered by Google App Engine
This is Rietveld 408576698