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

Issue 1597383002: Service Worker: (Re-commit) Add FetchEvent.clientId (Closed)

Created:
4 years, 11 months ago by jungkees
Modified:
4 years, 11 months ago
Reviewers:
falken, tkent, zino, dcheng
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, kenjibaheux+watch_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: (Re-commit) Add FetchEvent.clientId * The original CL was committed but reverted due to a use-of-uninitialized-value report: https://codereview.chromium.org/1435633002/#msg31 This CL re-commits the original CL with a patch that initializes the member, |is_main_resource_load|, in its containing object's constructors. Changes from the original commit: - Add the member init in the initializer list of the constructors of ServiceWorkerFetchRequest class (in service_worker_types.cc). -- 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/f527e8602d8b4cb18c973d143cb6e33cb4ea6922 Cr-Commit-Position: refs/heads/master@{#370073}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -47 lines) Patch
M content/browser/service_worker/foreign_fetch_request_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 2 chunks +2 lines, -0 lines 2 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event.html View 6 chunks +48 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-test-worker.js View 3 chunks +20 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js View 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 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 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 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEvent.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/FetchEventInit.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerRequest.cpp View 5 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.h View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1597383002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1597383002/1
4 years, 11 months ago (2016-01-18 04:20:13 UTC) #2
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 11 months ago (2016-01-18 04:20:17 UTC) #4
jungkees
This CL attempts to re-commit https://codereview.chromium.org/1435633002/ by fixing the use-of-uninitialized-value warning (reported in https://codereview.chromium.org/1435633002/#msg31). PTAL ...
4 years, 11 months ago (2016-01-18 10:04:33 UTC) #9
falken
lgtm BTW for relands, a convenient thing to do is upload the original change as ...
4 years, 11 months ago (2016-01-18 11:25:13 UTC) #11
jungkees
Gotcha! I'll do so next time. If you expect me to do so with this ...
4 years, 11 months ago (2016-01-18 11:42:38 UTC) #12
jungkees
tkent@, dcheng@, PTAL. The only changed file is service_worker_types.cc where I added an initialization of ...
4 years, 11 months ago (2016-01-18 12:01:58 UTC) #13
tkent
lgtm
4 years, 11 months ago (2016-01-18 23:14:45 UTC) #14
dcheng
lgtm
4 years, 11 months ago (2016-01-19 00:21:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1597383002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1597383002/20001
4 years, 11 months ago (2016-01-19 00:35:38 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-19 02:51:37 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 02:53:47 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f527e8602d8b4cb18c973d143cb6e33cb4ea6922
Cr-Commit-Position: refs/heads/master@{#370073}

Powered by Google App Engine
This is Rietveld 408576698