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

Issue 193723003: Identify service worker version at main resource load time. (Closed)

Created:
6 years, 9 months ago by michaeln
Modified:
6 years, 8 months ago
Reviewers:
kinuko, cmp, jam, dcheng
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, nhiroki, joi+watch-content_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

Identify sw version at main resource load time. The corresponding blink change is blink r169479. BUG=285976 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260672

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 11

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -66 lines) Patch
M content/child/request_extra_data.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M content/child/request_extra_data.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -33 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_network_provider.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +37 lines, -29 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +56 lines, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
michaeln
Not ready yet but heads up. I also need to prep the blnk side to ...
6 years, 9 months ago (2014-03-11 02:17:28 UTC) #1
michaeln
https://codereview.chromium.org/193723003/diff/10001/content/renderer/service_worker/embedded_worker_context_client.cc File content/renderer/service_worker/embedded_worker_context_client.cc (right): https://codereview.chromium.org/193723003/diff/10001/content/renderer/service_worker/embedded_worker_context_client.cc#newcode72 content/renderer/service_worker/embedded_worker_context_client.cc:72: ServiceWorkerNetworkProvider::FromDocumentState( We'll need to construct the provider here, not ...
6 years, 9 months ago (2014-03-11 02:24:03 UTC) #2
michaeln
Here's the fledgling blink side https://codereview.chromium.org/194073002/ I have to similarly have to add a willSendRequest() ...
6 years, 9 months ago (2014-03-11 02:37:05 UTC) #3
kinuko
Nice, thanks for plumbing this too!
6 years, 9 months ago (2014-03-11 09:16:45 UTC) #4
michaeln
i don't have new snapshots for this just yet, but i'm getting there
6 years, 9 months ago (2014-03-12 01:28:08 UTC) #5
michaeln
Finally got some new snapshots to look at. https://codereview.chromium.org/193723003/diff/30001/content/renderer/service_worker/embedded_worker_context_client.cc File content/renderer/service_worker/embedded_worker_context_client.cc (right): https://codereview.chromium.org/193723003/diff/30001/content/renderer/service_worker/embedded_worker_context_client.cc#newcode61 content/renderer/service_worker/embedded_worker_context_client.cc:61: : ...
6 years, 9 months ago (2014-03-14 00:56:58 UTC) #6
kinuko
I see... looking good. https://codereview.chromium.org/193723003/diff/30001/content/child/request_extra_data.h File content/child/request_extra_data.h (right): https://codereview.chromium.org/193723003/diff/30001/content/child/request_extra_data.h#newcode23 content/child/request_extra_data.h:23: RequestExtraData(int service_worker_provider_id); nit: explicit ? ...
6 years, 9 months ago (2014-03-14 11:46:44 UTC) #7
michaeln
https://codereview.chromium.org/193723003/diff/30001/content/child/request_extra_data.h File content/child/request_extra_data.h (right): https://codereview.chromium.org/193723003/diff/30001/content/child/request_extra_data.h#newcode23 content/child/request_extra_data.h:23: RequestExtraData(int service_worker_provider_id); On 2014/03/14 11:46:44, kinuko wrote: > nit: ...
6 years, 9 months ago (2014-03-15 01:19:26 UTC) #8
kinuko
lgtm for service worker related changes
6 years, 9 months ago (2014-03-17 05:21:45 UTC) #9
michaeln
Thnx kinuko, i need some other owner reviews too. @jam for content\child stuff not in ...
6 years, 9 months ago (2014-03-17 21:54:32 UTC) #10
dcheng
Two other questions: 1) I don't see a message handler for ServiceWorkerHostMsg_SetVersionId. Am I missing ...
6 years, 9 months ago (2014-03-17 22:12:09 UTC) #11
michaeln
> 1) I don't see a message handler for ServiceWorkerHostMsg_SetVersionId. > 2) What are different ...
6 years, 9 months ago (2014-03-17 22:53:58 UTC) #12
michaeln
Both of the id values in the new message are sequence numbers and not derived ...
6 years, 9 months ago (2014-03-17 23:04:37 UTC) #13
michaeln
https://codereview.chromium.org/193723003/diff/70001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/193723003/diff/70001/content/common/service_worker/service_worker_messages.h#newcode90 content/common/service_worker/service_worker_messages.h:90: // Informs the browser that |provider_id| is associated On ...
6 years, 9 months ago (2014-03-17 23:27:03 UTC) #14
dcheng
On 2014/03/17 22:53:58, michaeln wrote: > > 1) I don't see a message handler for ...
6 years, 9 months ago (2014-03-18 04:05:49 UTC) #15
jam
On 2014/03/17 21:54:32, michaeln wrote: > Thnx kinuko, i need some other owner reviews too. ...
6 years, 9 months ago (2014-03-18 18:18:55 UTC) #16
michaeln
> https://codereview.chromium.org/182383015 removes the constructor with > parameters and makes it so that only an ...
6 years, 9 months ago (2014-03-18 20:04:43 UTC) #17
michaeln
> What happens if a service worker forges a version ID? Could it access the ...
6 years, 9 months ago (2014-03-18 20:46:54 UTC) #18
jam
On 2014/03/18 20:04:43, michaeln wrote: > > https://codereview.chromium.org/182383015 removes the constructor with > > parameters ...
6 years, 9 months ago (2014-03-19 16:45:57 UTC) #19
michaeln
@dcheng, friendly ping @jam, i haven't looked to see where https://codereview.chromium.org/182383015 stands right now but ...
6 years, 9 months ago (2014-03-19 22:09:39 UTC) #20
dcheng
On 2014/03/18 20:46:54, michaeln wrote: > > What happens if a service worker forges a ...
6 years, 9 months ago (2014-03-19 22:13:26 UTC) #21
michaeln
> Sorry, I was waiting for the rebase for RequestExtraData before taking a second > ...
6 years, 9 months ago (2014-03-19 22:29:08 UTC) #22
michaeln
@jam, ptal, rebased on top of https://codereview.chromium.org/182383015
6 years, 9 months ago (2014-03-27 19:24:43 UTC) #23
jam
lgtm https://codereview.chromium.org/193723003/diff/150001/content/child/resource_dispatcher.cc File content/child/resource_dispatcher.cc (left): https://codereview.chromium.org/193723003/diff/150001/content/child/resource_dispatcher.cc#oldcode152 content/child/resource_dispatcher.cc:152: request_.is_main_frame = false; looks like before this would ...
6 years, 9 months ago (2014-03-27 22:59:17 UTC) #24
jam
https://codereview.chromium.org/193723003/diff/150001/content/child/request_extra_data.h File content/child/request_extra_data.h (right): https://codereview.chromium.org/193723003/diff/150001/content/child/request_extra_data.h#newcode17 content/child/request_extra_data.h:17: // The RenderView and EmbeddedWorkerContextClient store an instance of ...
6 years, 9 months ago (2014-03-27 23:00:24 UTC) #25
michaeln
https://codereview.chromium.org/193723003/diff/150001/content/child/request_extra_data.h File content/child/request_extra_data.h (right): https://codereview.chromium.org/193723003/diff/150001/content/child/request_extra_data.h#newcode17 content/child/request_extra_data.h:17: // The RenderView and EmbeddedWorkerContextClient store an instance of ...
6 years, 9 months ago (2014-03-27 23:09:00 UTC) #26
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 9 months ago (2014-03-27 23:21:52 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/193723003/170001
6 years, 9 months ago (2014-03-27 23:23:31 UTC) #28
cmp
The CQ bit was unchecked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:28:38 UTC) #29
cmp
The CQ bit was checked by cmp@chromium.org
6 years, 8 months ago (2014-03-30 16:32:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/193723003/170001
6 years, 8 months ago (2014-03-30 16:32:20 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-30 16:32:31 UTC) #32
commit-bot: I haz the power
Failed to apply patch for content/common/service_worker/service_worker_messages.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-03-30 16:32:32 UTC) #33
michaeln
The CQ bit was checked by michaeln@chromium.org
6 years, 8 months ago (2014-03-31 19:24:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaeln@chromium.org/193723003/190001
6 years, 8 months ago (2014-03-31 19:24:51 UTC) #35
commit-bot: I haz the power
6 years, 8 months ago (2014-03-31 22:17:33 UTC) #36
Message was sent while issue was closed.
Change committed as 260672

Powered by Google App Engine
This is Rietveld 408576698