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

Issue 1040993003: ServiceWorker: Support non-window clients in Clients.matchAll (2/2 blink) (Closed)

Created:
5 years, 8 months ago by kinuko
Modified:
5 years, 8 months ago
Reviewers:
falken, nhiroki
CC:
blink-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, falken, kinuko+serviceworker, horo+watch_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

ServiceWorker: Support non-window clients in Clients.matchAll (2/2 blink) - Supports ClientQueryOptions.type (Intent-to-ship thread: http://goo.gl/K5QZPr) - Supports Client.frameType (behind flag) Depends on corresponding chromium patch: https://codereview.chromium.org/1042933002/ BUG=460415 TEST=http/tests/serviceworker/clients-matchall-client-types.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192866

Patch Set 1 #

Total comments: 14

Messages

Total messages: 8 (2 generated)
falken
lgtm https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html File LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html (right): https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html#newcode9 LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:9: var worker_url = scope + '-worker.js'; nit: hmm ...
5 years, 8 months ago (2015-03-31 04:34:32 UTC) #2
kinuko
Thx, sorry can someone take over these 2 patches? 2015/03/31 午後1:34 <falken@chromium.org>: > lgtm > ...
5 years, 8 months ago (2015-03-31 05:19:28 UTC) #3
nhiroki
FYI: I'll commit this on behalf of kinuko@ and will make a separate CL to ...
5 years, 8 months ago (2015-03-31 21:57:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040993003/1
5 years, 8 months ago (2015-03-31 21:58:59 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=192866
5 years, 8 months ago (2015-03-31 22:09:36 UTC) #7
nhiroki
5 years, 8 months ago (2015-04-01 04:51:34 UTC) #8
Message was sent while issue was closed.
Uploaded a follow-up CL: https://codereview.chromium.org/1045363004/

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
File LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html
(right):

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:9: var
worker_url = scope + '-worker.js';
On 2015/03/31 04:34:32, falken wrote:
> nit: hmm we've been using -worker.js for service workers. Would it make sense
to
> name this -sharedworker.js or -shared-worker.js?
> (I was momentarily confused reviewing clients-matchall-client-types-worker.js
> thinking it was a service worker.)

Renamed to -shared-worker.js

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:13:
['visible', true, new URL(iframe_url, location).toString(), 'nested']
On 2015/03/31 04:34:32, falken wrote:
> nit: these .toString() could be .href to save typing

Done.

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:36:
resolve(frame);
On 2015/03/31 04:34:32, falken wrote:
> nit: this return value isn't used

Removed.

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:57:
resolve(e.data);
On 2015/03/31 04:34:32, falken wrote:
> nit: unused

Removed.

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:58: }
On 2015/03/31 04:34:32, falken wrote:
> nit: missing semi-colon

Done.

https://codereview.chromium.org/1040993003/diff/1/LayoutTests/http/tests/serv...
LayoutTests/http/tests/serviceworker/clients-matchall-client-types.html:66:
{type:"window"});
On 2015/03/31 04:34:31, falken wrote:
> nit: should be single-quotes in JS (same below)

Done.

https://codereview.chromium.org/1040993003/diff/1/Source/modules/serviceworke...
File Source/modules/serviceworkers/ServiceWorkerClients.cpp (right):

https://codereview.chromium.org/1040993003/diff/1/Source/modules/serviceworke...
Source/modules/serviceworkers/ServiceWorkerClients.cpp:33:
WebServiceWorkerClientInfo& client = webClients->clients[i];
On 2015/03/31 04:34:32, falken wrote:
> can this be const?

Done.

Powered by Google App Engine
This is Rietveld 408576698