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

Issue 1175823002: ServiceWorker: Implement ServiceWorkerRegistration.update() (2) (Closed)

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

Description

ServiceWorker: Implement ServiceWorkerRegistration.update() (2) Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-update (1) Blink: https://codereview.chromium.org/1177913002/ (2) Chromium: THIS PATCH (3) Blink: https://codereview.chromium.org/1177563005 BUG=450507 TEST=will be added by (3) Committed: https://crrev.com/f1f9ab588bd0efb7c1eff9e1bebe69a00d50c92c Cr-Commit-Position: refs/heads/master@{#334394}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : [PLEASE HOLD ON. I WILL UPDATE THE CL] address falken@'s comments #

Patch Set 3 : route an update request through WebServiceWorkerRegistrationImpl #

Patch Set 4 : trivial fix #

Total comments: 12

Patch Set 5 : rebase #

Patch Set 6 : address kinuko@'s comments #

Total comments: 7

Patch Set 7 : update #

Patch Set 8 : rebase #

Total comments: 2

Patch Set 9 : revert comment change #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -4 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 3 chunks +64 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -4 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_provider_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_provider_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (15 generated)
nhiroki
PTAL
5 years, 6 months ago (2015-06-10 03:40:38 UTC) #4
falken
lgtm https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode710 content/browser/service_worker/service_worker_dispatcher_host.cc:710: // This can happen if update() is called ...
5 years, 6 months ago (2015-06-10 04:04:40 UTC) #5
falken
Oops forgot one thing. https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode715 content/browser/service_worker/service_worker_dispatcher_host.cc:715: false /* force_bypass_cache */); Ah ...
5 years, 6 months ago (2015-06-10 04:08:49 UTC) #6
nhiroki
Thank you for reviewing! Updated. https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/40001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode710 content/browser/service_worker/service_worker_dispatcher_host.cc:710: // This can happen ...
5 years, 6 months ago (2015-06-10 06:36:32 UTC) #7
nhiroki
+nasko@ for bad_message.h and service_worker_messages.h +asvitkine@ for histograms.xml PTAL, thanks!
5 years, 6 months ago (2015-06-10 06:39:36 UTC) #9
kinuko
https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc#newcode131 content/child/service_worker/service_worker_dispatcher.cc:131: const GURL& pattern) { I'm curious why we supply ...
5 years, 6 months ago (2015-06-10 06:47:17 UTC) #11
nhiroki
https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc#newcode131 content/child/service_worker/service_worker_dispatcher.cc:131: const GURL& pattern) { On 2015/06/10 06:47:17, kinuko wrote: ...
5 years, 6 months ago (2015-06-10 06:55:26 UTC) #12
kinuko
On 2015/06/10 06:55:26, nhiroki wrote: > https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc > File content/child/service_worker/service_worker_dispatcher.cc (right): > > https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc#newcode131 > ...
5 years, 6 months ago (2015-06-10 07:01:41 UTC) #13
nhiroki
On 2015/06/10 07:01:41, kinuko wrote: > On 2015/06/10 06:55:26, nhiroki wrote: > > > https://codereview.chromium.org/1175823002/diff/40001/content/child/service_worker/service_worker_dispatcher.cc ...
5 years, 6 months ago (2015-06-10 07:28:35 UTC) #14
kinuko
On 2015/06/10 07:28:35, nhiroki wrote: > On 2015/06/10 07:01:41, kinuko wrote: > > On 2015/06/10 ...
5 years, 6 months ago (2015-06-10 08:44:01 UTC) #15
nhiroki
nasko@, asvitkine@: sorry, please hold on. I'll remake this CL to incorporate kinuko@'s comments tomorrow.
5 years, 6 months ago (2015-06-10 13:16:36 UTC) #16
kinuko
On 2015/06/10 13:16:36, nhiroki wrote: > nasko@, asvitkine@: sorry, please hold on. I'll remake this ...
5 years, 6 months ago (2015-06-10 13:27:03 UTC) #18
michaeln
drive by: the object being operated on is the registation, maybe refer to it by ...
5 years, 6 months ago (2015-06-10 19:43:19 UTC) #19
nhiroki
kinuko@, michaeln@: Thank you for your comments! Updated the CL to route a request through ...
5 years, 6 months ago (2015-06-11 00:04:57 UTC) #21
nhiroki
On 2015/06/11 00:04:57, nhiroki wrote: > kinuko@, michaeln@: Thank you for your comments! Updated the ...
5 years, 6 months ago (2015-06-11 00:19:56 UTC) #22
kinuko
Looking nicer to me. https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode383 content/browser/service_worker/service_worker_dispatcher_host.cc:383: if (!OriginCanAccessServiceWorkers(provider_host->document_url())) { This check's ...
5 years, 6 months ago (2015-06-11 03:50:36 UTC) #23
nhiroki
Thanks! Updated. falken@: I have a question about AllowServiceWorker. Can you take a look at ...
5 years, 6 months ago (2015-06-11 05:48:34 UTC) #25
falken
https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode525 content/browser/service_worker/service_worker_dispatcher_host.cc:525: provider_host->document_url(), provider_host->topmost_frame_url(), On 2015/06/11 05:48:33, nhiroki wrote: > Question ...
5 years, 6 months ago (2015-06-11 06:26:55 UTC) #26
kinuko
https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode392 content/browser/service_worker/service_worker_dispatcher_host.cc:392: } On 2015/06/11 05:48:33, nhiroki wrote: > On 2015/06/11 ...
5 years, 6 months ago (2015-06-11 06:33:06 UTC) #27
michaeln
https://codereview.chromium.org/1175823002/diff/180001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/180001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode391 content/browser/service_worker/service_worker_dispatcher_host.cc:391: GetContext()->storage()->FindRegistrationForId( On 2015/06/11 06:33:06, kinuko wrote: > If this ...
5 years, 6 months ago (2015-06-11 21:40:48 UTC) #29
nhiroki
Updated. Can you take another look? https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/1175823002/diff/120001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode525 content/browser/service_worker/service_worker_dispatcher_host.cc:525: provider_host->document_url(), provider_host->topmost_frame_url(), On ...
5 years, 6 months ago (2015-06-12 08:50:58 UTC) #31
kinuko
lgtm
5 years, 6 months ago (2015-06-12 09:21:16 UTC) #32
nhiroki
+mkwst@ for service_worker_messages.h +asvitkine@ for histograms.xml PTAL, thanks!
5 years, 6 months ago (2015-06-12 09:25:32 UTC) #34
Mike West
https://codereview.chromium.org/1175823002/diff/230001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/1175823002/diff/230001/content/common/service_worker/service_worker_messages.h#newcode130 content/common/service_worker/service_worker_messages.h:130: GURL /* scope */) What does this change imply?
5 years, 6 months ago (2015-06-12 13:02:07 UTC) #35
nhiroki
https://codereview.chromium.org/1175823002/diff/230001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/1175823002/diff/230001/content/common/service_worker/service_worker_messages.h#newcode130 content/common/service_worker/service_worker_messages.h:130: GURL /* scope */) On 2015/06/12 13:02:06, Mike West ...
5 years, 6 months ago (2015-06-12 14:59:50 UTC) #36
Mike West
IPC LGTM, thanks for the explanation.
5 years, 6 months ago (2015-06-13 08:07:02 UTC) #37
Alexei Svitkine (slow)
lgtm
5 years, 6 months ago (2015-06-15 14:32:01 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175823002/260001
5 years, 6 months ago (2015-06-15 14:43:24 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/69696)
5 years, 6 months ago (2015-06-15 16:23:01 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175823002/260001
5 years, 6 months ago (2015-06-15 16:24:06 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:260001)
5 years, 6 months ago (2015-06-15 16:58:42 UTC) #46
commit-bot: I haz the power
5 years, 6 months ago (2015-06-15 16:59:47 UTC) #47
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f1f9ab588bd0efb7c1eff9e1bebe69a00d50c92c
Cr-Commit-Position: refs/heads/master@{#334394}

Powered by Google App Engine
This is Rietveld 408576698