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

Issue 988063004: Use UUID for ServiceWorker Client identifier (2/3, chromium) (Closed)

Created:
5 years, 9 months ago by kinuko
Modified:
5 years, 9 months ago
Reviewers:
michaeln, Tom Sepez, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, mlamouri+watch-content_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use UUID for ServiceWorker Client identifier (2/3, chromium) We used to use ServiceWorkerVersion-local identifier for clients but this patch changes the ID to global UUID one. Since it changes some security assumption I also added code to check the origin, so that ServiceWorker can only talk to the clients that are in the same origin. Spec issue: https://github.com/slightlyoff/ServiceWorker/issues/634 More context: https://github.com/slightlyoff/ServiceWorker/issues/609 To be landed in 3 patches: 1/3: blink-side patch https://crrev.com/990583002/ 2/3: THIS 3/3: blink-side cleanup BUG=464668 Committed: https://crrev.com/eb113ebb7a772b5e7af45bedebe070fe23762b07 Cr-Commit-Position: refs/heads/master@{#320451}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -94 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 chunks +17 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 4 chunks +6 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 10 chunks +50 lines, -44 lines 0 comments Download
M content/common/service_worker/service_worker_client_info.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_client_info.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 6 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
kinuko
PTL
5 years, 9 months ago (2015-03-11 23:53:47 UTC) #2
nhiroki
LGTM https://codereview.chromium.org/988063004/diff/40001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/988063004/diff/40001/content/browser/service_worker/service_worker_context_core.h#newcode159 content/browser/service_worker/service_worker_context_core.h:159: ServiceWorkerProviderHost* provider_host); nit: indent https://codereview.chromium.org/988063004/diff/40001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): ...
5 years, 9 months ago (2015-03-12 00:29:24 UTC) #3
kinuko
Thanks, updated. https://codereview.chromium.org/988063004/diff/40001/content/browser/service_worker/service_worker_context_core.h File content/browser/service_worker/service_worker_context_core.h (right): https://codereview.chromium.org/988063004/diff/40001/content/browser/service_worker/service_worker_context_core.h#newcode159 content/browser/service_worker/service_worker_context_core.h:159: ServiceWorkerProviderHost* provider_host); On 2015/03/12 00:29:24, nhiroki wrote: ...
5 years, 9 months ago (2015-03-12 01:07:00 UTC) #8
kinuko
tsepez@: Can you review service_worker_messages.h change? (It has some security implications as I wrote in ...
5 years, 9 months ago (2015-03-12 01:08:52 UTC) #9
Tom Sepez
I think your origin check is right. LGTM.
5 years, 9 months ago (2015-03-12 17:47:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988063004/60001
5 years, 9 months ago (2015-03-13 04:08:23 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-13 05:13:19 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-13 05:13:58 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eb113ebb7a772b5e7af45bedebe070fe23762b07
Cr-Commit-Position: refs/heads/master@{#320451}

Powered by Google App Engine
This is Rietveld 408576698