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

Issue 1285373002: Ensure that Service Worker clients are always returned in MRU order (1) (Closed)

Created:
5 years, 4 months ago by jeremyarcher
Modified:
5 years, 4 months ago
Reviewers:
falken, kinuko, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure that Service Worker clients are always returned in MRU order (1) Adds an ordering condition to ServiceWorkerVersion. Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#clients-matchall-method 1. (Chromium) This CL. 2. (Blink) https://codereview.chromium.org/1286123004/ BUG=461411 Committed: https://crrev.com/65c5354524fb6ecb696b0fd4e423b1fd19a0a385 Cr-Commit-Position: refs/heads/master@{#344197}

Patch Set 1 : basic patch (no tests) #

Total comments: 4

Patch Set 2 : Fix typos and add comments. #

Total comments: 6

Patch Set 3 : Fix typos and style. #

Total comments: 4

Patch Set 4 : Cleanup handling of namespaces. #

Patch Set 5 : Switch from activate to focus for ordering. #

Total comments: 1

Patch Set 6 : Move focus handling machinery to FocusTreeNode and fix capitalization. #

Total comments: 8

Patch Set 7 : Fix inconsistencies. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -24 lines) Patch
M content/browser/frame_host/frame_tree.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 6 chunks +23 lines, -13 lines 0 comments Download
M content/common/service_worker/service_worker_client_info.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_client_info.cc View 1 2 3 4 5 6 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
jeremyarcher
5 years, 4 months ago (2015-08-13 04:42:34 UTC) #3
nhiroki
Looks good overall. Can you add tests? https://codereview.chromium.org/1285373002/diff/20001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1285373002/diff/20001/content/browser/service_worker/service_worker_version.cc#newcode385 content/browser/service_worker/service_worker_version.cc:385: base::TimeTicks::Now(), host_client_type); ...
5 years, 4 months ago (2015-08-13 05:56:32 UTC) #4
jeremyarcher
I've added a fairly basic layout test to the blink side of things, but I ...
5 years, 4 months ago (2015-08-14 05:22:06 UTC) #5
nhiroki
https://codereview.chromium.org/1285373002/diff/40001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1285373002/diff/40001/content/browser/service_worker/service_worker_version.cc#newcode6 content/browser/service_worker/service_worker_version.cc:6: nit: "#include <algorithm>" for std::sort. https://codereview.chromium.org/1285373002/diff/40001/content/browser/service_worker/service_worker_version.cc#newcode1297 content/browser/service_worker/service_worker_version.cc:1297: }; Can ...
5 years, 4 months ago (2015-08-17 03:57:56 UTC) #6
nhiroki
On 2015/08/14 05:22:06, jeremyarcher wrote: > I've added a fairly basic layout test to the ...
5 years, 4 months ago (2015-08-17 03:59:20 UTC) #7
jeremyarcher
PTAL https://codereview.chromium.org/1285373002/diff/40001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1285373002/diff/40001/content/browser/service_worker/service_worker_version.cc#newcode6 content/browser/service_worker/service_worker_version.cc:6: On 2015/08/17 03:57:55, nhiroki wrote: > nit: "#include ...
5 years, 4 months ago (2015-08-17 04:51:29 UTC) #8
falken
I think this lgtm, please wait for nhiroki's review and for the tests to be ...
5 years, 4 months ago (2015-08-17 06:28:32 UTC) #9
nhiroki
lgtm with a nit https://codereview.chromium.org/1285373002/diff/60001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1285373002/diff/60001/content/browser/service_worker/service_worker_version.cc#newcode1300 content/browser/service_worker/service_worker_version.cc:1300: } We already have an ...
5 years, 4 months ago (2015-08-17 06:43:22 UTC) #10
jeremyarcher
Fixed! I'll wait until LGTM on https://codereview.chromium.org/1286123004/ before submitting. https://codereview.chromium.org/1285373002/diff/60001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc (right): https://codereview.chromium.org/1285373002/diff/60001/content/browser/service_worker/service_worker_provider_host.cc#newcode456 content/browser/service_worker/service_worker_provider_host.cc:456: ...
5 years, 4 months ago (2015-08-17 06:51:57 UTC) #11
jeremyarcher
On 2015/08/17 06:51:57, jeremyarcher wrote: > Fixed! > > I'll wait until LGTM on https://codereview.chromium.org/1286123004/ ...
5 years, 4 months ago (2015-08-18 08:58:32 UTC) #12
nhiroki
Looks good. Let me make one nit comment before stamping this again. https://codereview.chromium.org/1285373002/diff/100001/content/browser/service_worker/service_worker_provider_host.cc File content/browser/service_worker/service_worker_provider_host.cc ...
5 years, 4 months ago (2015-08-19 03:45:50 UTC) #13
jeremyarcher
On 2015/08/19 03:45:50, nhiroki wrote: > Looks good. Let me make one nit comment before ...
5 years, 4 months ago (2015-08-19 05:26:46 UTC) #14
nhiroki
LGTM https://codereview.chromium.org/1285373002/diff/120001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1285373002/diff/120001/content/browser/frame_host/frame_tree_node.h#newcode13 content/browser/frame_host/frame_tree_node.h:13: #include "base/memory/scoped_vector.h" nit: can you include "base/time/time.h"? https://codereview.chromium.org/1285373002/diff/120001/content/browser/service_worker/service_worker_version.cc ...
5 years, 4 months ago (2015-08-19 07:42:33 UTC) #15
jeremyarcher
On 2015/08/19 07:42:33, nhiroki wrote: > LGTM > > https://codereview.chromium.org/1285373002/diff/120001/content/browser/frame_host/frame_tree_node.h > File content/browser/frame_host/frame_tree_node.h (right): > ...
5 years, 4 months ago (2015-08-19 07:47:03 UTC) #16
jeremyarcher
On 2015/08/19 07:47:03, jeremyarcher wrote: > On 2015/08/19 07:42:33, nhiroki wrote: > > LGTM > ...
5 years, 4 months ago (2015-08-19 07:48:13 UTC) #18
jeremyarcher
-tkent +kinuko Apologies for the noise. https://codereview.chromium.org/1285373002/diff/120001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/1285373002/diff/120001/content/browser/frame_host/frame_tree_node.h#newcode13 content/browser/frame_host/frame_tree_node.h:13: #include "base/memory/scoped_vector.h" On ...
5 years, 4 months ago (2015-08-19 07:50:57 UTC) #20
tkent
> > +tkent I have no reason to review this CL.
5 years, 4 months ago (2015-08-19 07:52:15 UTC) #21
kinuko
lgtm
5 years, 4 months ago (2015-08-19 08:46:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285373002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285373002/160001
5 years, 4 months ago (2015-08-19 08:48:22 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 4 months ago (2015-08-19 10:57:13 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-19 10:57:52 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/65c5354524fb6ecb696b0fd4e423b1fd19a0a385
Cr-Commit-Position: refs/heads/master@{#344197}

Powered by Google App Engine
This is Rietveld 408576698