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

Issue 517493002: ServiceWorker: Update the install sequence as per the latest spec (Closed)

Created:
6 years, 3 months ago by nhiroki
Modified:
6 years, 3 months ago
Reviewers:
michaeln, nasko, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Update the install sequence as per the latest spec This change... (a) updates the install sequence based on the latest spec. Before this patch, the installing version is set after resolving the register promise. After this patch, the installing version is set before resolving the promise. (b) fills registration's version attributes before resolving the register promise. This should fix the problem mentioned c#5 in the issue and should absorb the change of the timing to set the installing version due to (a). (c) adds a separate IPC for updatefound event to adjust the timing to fire the event. Before this patch, the event shares SetVersionAttributes message. [1] Blink: https://codereview.chromium.org/524193003/ [2] Chromium: THIS PATCH [3] Blink: https://codereview.chromium.org/517223002/ Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#installation-algorithm BUG=406240 TEST=content_unittests --gtest_filter=ServiceWorker* TEST=run_webkit_tests.py http/tests/serviceworker/ Committed: https://crrev.com/8148543da0da6062980504f2851afb69e4bdaa4f Cr-Commit-Position: refs/heads/master@{#292838}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : address comments and update tests #

Total comments: 5

Patch Set 3 : comment fix (+rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -44 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 1 chunk +10 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 5 chunks +17 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_handle.h View 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_handle.cc View 1 3 chunks +25 lines, -17 lines 0 comments Download
M content/browser/service_worker/service_worker_registration_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 4 chunks +19 lines, -4 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/child/service_worker/service_worker_message_filter.cc View 1 2 chunks +12 lines, -5 lines 0 comments Download
M content/child/service_worker/web_service_worker_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (1 generated)
nhiroki
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-28 11:55:57 UTC) #1
nhiroki
Patchset #1 (id:20001) has been deleted
6 years, 3 months ago (2014-08-28 16:20:42 UTC) #2
nhiroki
Patchset #1 (id:40001) has been deleted
6 years, 3 months ago (2014-08-28 16:20:52 UTC) #3
nhiroki
Patchset #1 (id:60001) has been deleted
6 years, 3 months ago (2014-08-28 16:20:59 UTC) #4
nhiroki
Patchset #1 (id:80001) has been deleted
6 years, 3 months ago (2014-08-28 16:25:29 UTC) #5
nhiroki
nhiroki@chromium.org changed reviewers: + horo@chromium.org, michaeln@chromium.org
6 years, 3 months ago (2014-08-28 16:37:55 UTC) #6
nhiroki
On 2014/08/28 16:37:55, nhiroki wrote: > mailto:nhiroki@chromium.org changed reviewers: > + mailto:horo@chromium.org, mailto:michaeln@chromium.org Hi, would ...
6 years, 3 months ago (2014-08-28 16:40:43 UTC) #7
nhiroki
On 2014/08/28 16:40:43, nhiroki wrote: > On 2014/08/28 16:37:55, nhiroki wrote: > > mailto:nhiroki@chromium.org changed ...
6 years, 3 months ago (2014-08-28 16:43:14 UTC) #8
michaeln
looks pretty good to me https://codereview.chromium.org/517493002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/517493002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode383 content/browser/service_worker/service_worker_dispatcher_host.cc:383: ChangedVersionAttributesMask mask; the 'change ...
6 years, 3 months ago (2014-08-29 00:57:57 UTC) #9
nhiroki
Thanks! Updated and removed WIP mark. Can you take another look? https://codereview.chromium.org/517493002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): ...
6 years, 3 months ago (2014-08-29 08:23:10 UTC) #10
nhiroki
nhiroki@chromium.org changed reviewers: + nasko@chromium.org
6 years, 3 months ago (2014-08-29 08:25:26 UTC) #11
nhiroki
+nasko@: Can you review service_worker_messages.h? Thanks.
6 years, 3 months ago (2014-08-29 08:25:26 UTC) #12
nhiroki
https://codereview.chromium.org/517493002/diff/120001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/517493002/diff/120001/content/browser/service_worker/service_worker_register_job.cc#newcode356 content/browser/service_worker/service_worker_register_job.cc:356: new_version()->SetStatus(ServiceWorkerVersion::INSTALLING); fyi: I'm wondering if we should set the ...
6 years, 3 months ago (2014-08-29 09:22:49 UTC) #13
michaeln
lgtm
6 years, 3 months ago (2014-08-29 20:21:28 UTC) #14
nasko
LGTM with a couple of nits. https://codereview.chromium.org/517493002/diff/120001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/517493002/diff/120001/content/child/service_worker/service_worker_dispatcher.cc#newcode253 content/child/service_worker/service_worker_dispatcher.cc:253: registration->SetInstalling(GetServiceWorker(attrs.installing, true)); nit: ...
6 years, 3 months ago (2014-08-29 21:17:38 UTC) #15
horo
lgtm
6 years, 3 months ago (2014-09-01 02:17:54 UTC) #16
nhiroki
Thank you for reviewing! https://codereview.chromium.org/517493002/diff/120001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/517493002/diff/120001/content/child/service_worker/service_worker_dispatcher.cc#newcode253 content/child/service_worker/service_worker_dispatcher.cc:253: registration->SetInstalling(GetServiceWorker(attrs.installing, true)); On 2014/08/29 21:17:37, ...
6 years, 3 months ago (2014-09-01 03:46:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/517493002/140001
6 years, 3 months ago (2014-09-01 05:17:10 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:140001) as 68b394f77a844b17a613722926dc56374827c8c1
6 years, 3 months ago (2014-09-01 06:12:40 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:15:44 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8148543da0da6062980504f2851afb69e4bdaa4f
Cr-Commit-Position: refs/heads/master@{#292838}

Powered by Google App Engine
This is Rietveld 408576698