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

Issue 1143293003: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed)

Created:
5 years, 7 months ago by jungkees
Modified:
5 years, 6 months ago
Reviewers:
falken, kinuko, xiang, nhiroki, tkent
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, dglazkov+blink, kinuko+serviceworker, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Service Worker: Add ServiceWorkerContainer.getRegistrations() method. Implement ServiceWorkerContainer.getReistrations() method as per spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#navigator-service-worker-getRegistrations Companion CL: https://codereview.chromium.org/1146913004/ BUG=478382

Patch Set 1 #

Patch Set 2 : Use provider's origin in browser instead of passing client's url from renderer. #

Total comments: 4

Patch Set 3 : Remove assertion for serviceWorkerEnabled(). #

Patch Set 4 : Fix layout tests that affect the new test. #

Total comments: 11

Patch Set 5 : Change back to using promise_test for layout tests except getregistrations.html #

Patch Set 6 : Remove unused param in claim-not-using-registration.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -7 lines) Patch
M LayoutTests/http/tests/serviceworker/claim-not-using-registration.html View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/getregistrations.html View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 2 3 chunks +29 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerContainer.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.h View 2 chunks +23 lines, -0 lines 0 comments Download
M public/platform/WebServiceWorkerProvider.h View 1 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 22 (3 generated)
jungkees
PTAL
5 years, 7 months ago (2015-05-21 05:18:22 UTC) #2
falken
Thanks for working on this! You can use BUG=478382 https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html File LayoutTests/http/tests/serviceworker/getregistrations.html (right): https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html#newcode5 LayoutTests/http/tests/serviceworker/getregistrations.html:5: ...
5 years, 7 months ago (2015-05-25 00:43:02 UTC) #3
jungkees
https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html File LayoutTests/http/tests/serviceworker/getregistrations.html (right): https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html#newcode5 LayoutTests/http/tests/serviceworker/getregistrations.html:5: <script> On 2015/05/25 00:43:02, falken wrote: > This will ...
5 years, 7 months ago (2015-05-27 08:06:46 UTC) #4
jungkees
Meantime, I'm having trouble uploading an updated patch set for the companion CL: https://codereview.chromium.org/1146913004/. Will ...
5 years, 7 months ago (2015-05-27 08:08:50 UTC) #5
falken
On 2015/05/27 08:06:46, jungkees wrote: > https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html > File LayoutTests/http/tests/serviceworker/getregistrations.html (right): > > https://codereview.chromium.org/1143293003/diff/20001/LayoutTests/http/tests/serviceworker/getregistrations.html#newcode5 > ...
5 years, 7 months ago (2015-05-27 08:11:16 UTC) #6
jungkees
On 2015/05/27 08:11:16, falken wrote: > The 2 content shells run in parallel but their ...
5 years, 6 months ago (2015-06-03 12:46:40 UTC) #7
falken
Just looked at tests this time. https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html File LayoutTests/http/tests/serviceworker/claim-not-using-registration.html (right): https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html#newcode11 LayoutTests/http/tests/serviceworker/claim-not-using-registration.html:11: sequential_promise_test(function(t) { It's ...
5 years, 6 months ago (2015-06-05 01:36:39 UTC) #8
falken
+Xiang: See above comment about wait-forever-in-installing-worker.js
5 years, 6 months ago (2015-06-05 01:39:48 UTC) #10
jungkees
https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html File LayoutTests/http/tests/serviceworker/claim-not-using-registration.html (right): https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html#newcode11 LayoutTests/http/tests/serviceworker/claim-not-using-registration.html:11: sequential_promise_test(function(t) { While I'd tried quite a few different ...
5 years, 6 months ago (2015-06-05 02:08:13 UTC) #11
jungkees
Just uploaded a new snapshot removing an unused param in claim-not-using-registration.html. PTAL.
5 years, 6 months ago (2015-06-05 02:35:57 UTC) #12
xiang
https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html File LayoutTests/http/tests/serviceworker/claim-not-using-registration.html (right): https://codereview.chromium.org/1143293003/diff/60001/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html#newcode82 LayoutTests/http/tests/serviceworker/claim-not-using-registration.html:82: var installing_worker_url = 'resources/empty-worker.js'; On 2015/06/05 01:36:39, falken wrote: ...
5 years, 6 months ago (2015-06-08 02:55:29 UTC) #13
falken
Thanks for the update. I'll wait for the Chromium patch to get ready before official ...
5 years, 6 months ago (2015-06-08 08:04:32 UTC) #14
jungkees
On 2015/06/08 08:04:32, falken wrote: > Thanks for the update. I'll wait for the Chromium ...
5 years, 6 months ago (2015-06-08 16:15:57 UTC) #15
falken
+tkent: for web/ OWNER (I think this doesn't require an Intent to Ship, the addition ...
5 years, 6 months ago (2015-06-09 07:21:25 UTC) #17
tkent
On 2015/06/09 07:21:25, falken wrote: > > > And before I forget, let's make sure ...
5 years, 6 months ago (2015-06-09 07:51:20 UTC) #18
falken
On 2015/06/09 07:51:20, tkent wrote: > On 2015/06/09 07:21:25, falken wrote: > > > > ...
5 years, 6 months ago (2015-06-09 08:03:09 UTC) #19
jungkees
Okay, I'll make it a 3-sided patch as suggested.
5 years, 6 months ago (2015-06-09 08:20:56 UTC) #20
falken
On 2015/06/09 08:20:56, jungkees wrote: > Okay, I'll make it a 3-sided patch as suggested. ...
5 years, 6 months ago (2015-06-10 03:22:24 UTC) #21
jungkees
5 years, 6 months ago (2015-06-10 03:56:25 UTC) #22
Message was sent while issue was closed.
Sure. Thanks.

Powered by Google App Engine
This is Rietveld 408576698