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

Issue 1435633002: Service Worker: Add FetchEvent.clientId (Closed)

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

Description

Service Worker: Add FetchEvent.clientId As per the latest spec update, this CL implements FetchEvent.clientId attribute. Spec discussion: https://github.com/slightlyoff/ServiceWorker/issues/723#issuecomment-151326898 Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#fetch-event-clientid Intent to implement and ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/XlBHOIOCjUk The layout tests for this CL are mostly taken from Mozilla's work instead of making new ones to ensure compatibility: https://bugzilla.mozilla.org/show_bug.cgi?id=1222464 BUG=552309 Committed: https://crrev.com/f1b2374078adf2068473bd9f81fd7615cf35d34d Cr-Commit-Position: refs/heads/master@{#369649}

Patch Set 1 #

Patch Set 2 : Rebase and add |client_id_| to ServiceWorkerURLRequestJob #

Patch Set 3 : Add/Update layout tests #

Patch Set 4 : Add a test case for a subresource request #

Patch Set 5 : Resolve compatibility concern about non-subresource requests #

Patch Set 6 : Address the spec resolution: return null for navigation request #

Total comments: 12

Patch Set 7 : Update layout tests; fix member init and argument type #

Total comments: 2

Patch Set 8 : Change the order of a class member #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -47 lines) Patch
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event.html View 1 2 3 4 5 6 6 chunks +48 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js View 1 2 3 4 5 3 chunks +20 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js View 1 2 3 4 5 1 chunk +36 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.h View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl View 1 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEventInit.idl View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp View 1 2 3 4 5 6 5 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
jungkees
The client concept needs to be clarified in the spec (SW, Fetch and HTML) especially ...
5 years, 1 month ago (2015-11-12 11:13:57 UTC) #2
jungkees
I just updated a new snapshot ready for review (with a TODO marked in fetch-event-client-id* ...
4 years, 12 months ago (2015-12-24 09:10:10 UTC) #7
jungkees
> I just updated a new snapshot ready for review (with a TODO marked in ...
4 years, 11 months ago (2015-12-29 07:54:59 UTC) #8
falken
Thanks for working on this! I have a compat concern about non-subresource requests. Opened https://github.com/slightlyoff/ServiceWorker/issues/808
4 years, 11 months ago (2016-01-05 04:59:58 UTC) #9
jungkees
On 2016/01/05 04:59:58, falken wrote: > Thanks for working on this! I have a compat ...
4 years, 11 months ago (2016-01-05 06:28:04 UTC) #10
jungkees
I made it conform to what Gecko does, but still want to have more comments ...
4 years, 11 months ago (2016-01-06 10:28:47 UTC) #11
jungkees
We finally decided to return null for a non-subresource requests: https://github.com/slightlyoff/ServiceWorker/issues/808. I uploaded a new ...
4 years, 11 months ago (2016-01-09 03:32:19 UTC) #12
jungkees
I'll send an intent to implement and ship on Monday. As discussed with falken@, I'll ...
4 years, 11 months ago (2016-01-09 03:37:00 UTC) #13
jungkees
The intent to implement and ship has got three l-g-t-ms: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/XlBHOIOCjUk. Could you take a ...
4 years, 11 months ago (2016-01-13 02:06:55 UTC) #14
falken
Looking good. CL description nits: - cliendId -> clientId - Indicate that the test changes ...
4 years, 11 months ago (2016-01-13 09:06:53 UTC) #15
jungkees
I just uploaded a new snapshot having addressed the comments. PTAL https://codereview.chromium.org/1435633002/diff/130001/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event.html (right): ...
4 years, 11 months ago (2016-01-13 10:55:18 UTC) #17
falken
LGTM! https://codereview.chromium.org/1435633002/diff/150001/content/browser/service_worker/service_worker_url_request_job.h File content/browser/service_worker/service_worker_url_request_job.h (right): https://codereview.chromium.org/1435633002/diff/150001/content/browser/service_worker/service_worker_url_request_job.h#newcode231 content/browser/service_worker/service_worker_url_request_job.h:231: std::string client_id_; nit: I like to order things ...
4 years, 11 months ago (2016-01-14 02:30:15 UTC) #18
jungkees
falken@, done with the comment. tkent@, could you review the public APIs? dcheng@, palmer@, could ...
4 years, 11 months ago (2016-01-14 04:56:46 UTC) #21
tkent
Web-exposed API change LGTM
4 years, 11 months ago (2016-01-14 05:03:42 UTC) #22
dcheng
ipc changes lgtm
4 years, 11 months ago (2016-01-14 19:10:53 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1435633002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1435633002/170001
4 years, 11 months ago (2016-01-15 00:17:42 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years, 11 months ago (2016-01-15 01:41:37 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/f1b2374078adf2068473bd9f81fd7615cf35d34d Cr-Commit-Position: refs/heads/master@{#369649}
4 years, 11 months ago (2016-01-15 01:42:57 UTC) #30
huangs
A revert of this CL (patchset #8 id:170001) has been created in https://codereview.chromium.org/1588003005/ by huangs@chromium.org. ...
4 years, 11 months ago (2016-01-15 15:15:42 UTC) #31
jungkees
4 years, 11 months ago (2016-01-19 03:40:18 UTC) #32
Message was sent while issue was closed.
This change relanded with a patch in https://codereview.chromium.org/1597383002/

Powered by Google App Engine
This is Rietveld 408576698