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

Issue 1701843002: ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent (Closed)

Created:
4 years, 10 months ago by nhiroki
Modified:
4 years, 9 months ago
Reviewers:
falken, Mike West
CC:
blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_focus_into_utils
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Implement 'source' and 'origin' attributes of ExtendableMessageEvent Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#extendablemessage-event-section Intent-to-ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/fUPpDcnOi64 Note: ExtendableMessageEvent is still behind a flag. BUG=543198 Committed: https://crrev.com/0412b9e628ac0d7d5853b8b8dc41adfe6aae68f5 Cr-Commit-Position: refs/heads/master@{#380557}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : fix oilpan build #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : address falken's comments #

Total comments: 2

Patch Set 5 : improve spec conformance #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : deal with sandboxed clients #

Patch Set 9 : clean up tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -47 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 6 7 8 3 chunks +74 lines, -8 lines 0 comments Download
M content/child/service_worker/web_service_worker_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M content/child/service_worker/web_service_worker_impl.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -9 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 4 chunks +19 lines, -7 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 2 chunks +25 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/extendable-message-event.html View 1 2 3 4 5 6 7 8 1 chunk +230 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-loopback-worker.js View 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-ping-worker.js View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-pong-worker.js View 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-sandboxed-iframe.html View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/extendable-message-event-worker.js View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-respond-with-stops-propagation.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 5 6 7 2 chunks +27 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (36 generated)
nhiroki
PTAL, thanks! https://codereview.chromium.org/1701843002/diff/280001/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html (left): https://codereview.chromium.org/1701843002/diff/280001/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html#oldcode25 third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-event-async-respond-with.html:25: frame.remove(); fyi: This frame should be removed ...
4 years, 9 months ago (2016-03-01 09:28:30 UTC) #18
falken
I think this lgtm! https://codereview.chromium.org/1701843002/diff/300001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1701843002/diff/300001/content/common/service_worker/service_worker_types.h#newcode237 content/common/service_worker/service_worker_types.h:237: ExtendableMessageEventSource(); Do you need this ...
4 years, 9 months ago (2016-03-02 09:02:48 UTC) #19
nhiroki
Thank you for reviewing! https://codereview.chromium.org/1701843002/diff/300001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1701843002/diff/300001/content/common/service_worker/service_worker_types.h#newcode237 content/common/service_worker/service_worker_types.h:237: ExtendableMessageEventSource(); On 2016/03/02 09:02:48, falken ...
4 years, 9 months ago (2016-03-02 09:57:12 UTC) #21
nhiroki
+mkwst@, can you review following files? - content/common/service_worker/service_worker_messages.h - third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h - third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp Thanks
4 years, 9 months ago (2016-03-02 09:58:41 UTC) #24
Mike West
The IPC changes look reasonable. One question about the origin. https://codereview.chromium.org/1701843002/diff/360001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp File third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp (right): https://codereview.chromium.org/1701843002/diff/360001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp#newcode112 ...
4 years, 9 months ago (2016-03-02 10:03:23 UTC) #25
nhiroki
Thank you for reviewing and sorry for my delayed reply... https://codereview.chromium.org/1701843002/diff/360001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp File third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp (right): https://codereview.chromium.org/1701843002/diff/360001/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp#newcode112 ...
4 years, 9 months ago (2016-03-07 07:40:52 UTC) #26
nhiroki
falken@, can you take another look? I slightly changed the patchset to improve spec conformance ...
4 years, 9 months ago (2016-03-07 07:43:10 UTC) #27
falken
delta from patchset 3 still lgtm
4 years, 9 months ago (2016-03-07 09:40:32 UTC) #28
Mike West
On 2016/03/07 at 07:40:52, nhiroki wrote: > Thank you for reviewing and sorry for my ...
4 years, 9 months ago (2016-03-08 11:02:03 UTC) #29
nhiroki
mkwst@: The latest patchset deals with sandboxed clients by passing client's SecurityOrigin. Can you take ...
4 years, 9 months ago (2016-03-10 08:54:22 UTC) #31
Mike West
IPC LGTM, thank you for taking another pass.
4 years, 9 months ago (2016-03-10 09:20:07 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-10 14:42:16 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/137706)
4 years, 9 months ago (2016-03-10 15:25:37 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-10 23:21:43 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138106)
4 years, 9 months ago (2016-03-11 00:27:57 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-11 00:48:25 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129236)
4 years, 9 months ago (2016-03-11 01:54:53 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-11 02:15:13 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138384)
4 years, 9 months ago (2016-03-11 03:20:51 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-11 04:05:45 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129468)
4 years, 9 months ago (2016-03-11 05:14:46 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701843002/500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701843002/500001
4 years, 9 months ago (2016-03-11 05:32:26 UTC) #56
commit-bot: I haz the power
Committed patchset #9 (id:500001)
4 years, 9 months ago (2016-03-11 06:33:41 UTC) #58
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 06:36:03 UTC) #60
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0412b9e628ac0d7d5853b8b8dc41adfe6aae68f5
Cr-Commit-Position: refs/heads/master@{#380557}

Powered by Google App Engine
This is Rietveld 408576698