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

Issue 1658073002: ServiceWorker: Implement attributes of ExtendableMessageEvent (Closed)

Created:
4 years, 10 months ago by nhiroki
Modified:
4 years, 10 months ago
Reviewers:
falken, tkent, bashi
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, xiang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Implement attributes of ExtendableMessageEvent This CL implements attributes of ExtendableMessageEvent other than 'origin' and 'source', and enables ExtendableMessageEvent in LayoutTests. (Before this CL, regular MessageEvent was used in LayoutTests) 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 The most part of this CL was originally implemented by xiang.long@intel.com: http://crrev.com/1156703003/ BUG=543198 Committed: https://crrev.com/cde920bddbea22c192e1caa2c7c7ae0c821242c7 Cr-Commit-Position: refs/heads/master@{#375129}

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : address falken's comments #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : address falken's comments #

Total comments: 5

Patch Set 7 : rebase #

Patch Set 8 : remake based on bashi's patch http://crrev.com/1688573002 #

Total comments: 3

Patch Set 9 : templatize duplicate code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -99 lines) Patch
M content/child/service_worker/web_service_worker_impl.cc View 2 chunks +13 lines, -6 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 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h View 1 2 3 4 5 6 7 8 4 chunks +24 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/V8ServiceWorkerMessageEventCustom.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/custom.gni View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/custom/custom.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/v8.gni View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/v8.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h View 1 2 3 4 5 6 7 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp View 1 2 3 4 5 6 7 3 chunks +64 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl View 1 2 3 4 5 6 7 1 chunk +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEventInit.idl View 1 chunk +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerMessageEvent.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (21 generated)
nhiroki
falken@, can you review this? FYI: - I'll implement 'origin' and 'source' attributes in a ...
4 years, 10 months ago (2016-02-02 07:08:28 UTC) #13
nhiroki
On 2016/02/02 07:08:28, nhiroki wrote: > - Some layout tests have been running async operations ...
4 years, 10 months ago (2016-02-03 06:53:54 UTC) #14
falken
looks good. Should we add LayoutTests like the ones in fast/events/constructors/message-event-constructor? https://codereview.chromium.org/1658073002/diff/140001/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp (right): ...
4 years, 10 months ago (2016-02-05 02:28:52 UTC) #16
nhiroki
On 2016/02/05 02:28:52, falken wrote: > looks good. Should we add LayoutTests like the ones ...
4 years, 10 months ago (2016-02-05 09:15:23 UTC) #17
nhiroki
Thank you! https://codereview.chromium.org/1658073002/diff/140001/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp (right): https://codereview.chromium.org/1658073002/diff/140001/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp#newcode43 third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp:43: } On 2016/02/05 02:28:52, falken wrote: > ...
4 years, 10 months ago (2016-02-05 09:15:38 UTC) #18
falken
The SW part lgtm but I'd like bashi@ to double-check the union type use, since ...
4 years, 10 months ago (2016-02-05 09:58:18 UTC) #20
nhiroki
Thank you for reviewing! https://codereview.chromium.org/1658073002/diff/140001/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp File third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp (right): https://codereview.chromium.org/1658073002/diff/140001/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp#newcode43 third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp:43: } On 2016/02/05 09:58:18, falken ...
4 years, 10 months ago (2016-02-09 10:20:03 UTC) #21
nhiroki
bashi-san, can you check the the union type use in "ExtendableMessageEvent::source"? The context is as ...
4 years, 10 months ago (2016-02-09 10:25:26 UTC) #22
nhiroki
On 2016/02/09 10:25:26, nhiroki (slow) wrote: > bashi-san, can you check the the union type ...
4 years, 10 months ago (2016-02-09 10:26:55 UTC) #23
bashi
I missed this... Sorry for late review. As wrote in comments, this could cause memory ...
4 years, 10 months ago (2016-02-10 00:38:55 UTC) #24
nhiroki
On 2016/02/10 00:38:55, bashi1 wrote: > I missed this... Sorry for late review. > > ...
4 years, 10 months ago (2016-02-10 03:34:01 UTC) #25
nhiroki
(Not updated the CL yet) On 2016/02/10 03:34:01, nhiroki (slow) wrote: > On 2016/02/10 00:38:55, ...
4 years, 10 months ago (2016-02-10 07:40:37 UTC) #26
nhiroki
bashi@, can you take another look? I recreated the CL based on your CL. Thanks! ...
4 years, 10 months ago (2016-02-10 08:08:57 UTC) #27
bashi
https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp (right): https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp#newcode14 third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp:14: void V8ExtendableMessageEvent::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& info) Is it possible to share ...
4 years, 10 months ago (2016-02-10 08:23:03 UTC) #28
nhiroki
https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp (right): https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp#newcode14 third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp:14: void V8ExtendableMessageEvent::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& info) On 2016/02/10 08:23:03, bashi1 wrote: ...
4 years, 10 months ago (2016-02-10 09:48:41 UTC) #29
bashi
https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp File third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp (right): https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp#newcode14 third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp:14: void V8ExtendableMessageEvent::constructorCustom(const v8::FunctionCallbackInfo<v8::Value>& info) On 2016/02/10 09:48:41, nhiroki (slow) ...
4 years, 10 months ago (2016-02-10 10:21:08 UTC) #30
nhiroki
On 2016/02/10 10:21:08, bashi1 wrote: > https://codereview.chromium.org/1658073002/diff/260001/third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp > File > third_party/WebKit/Source/bindings/modules/v8/custom/V8ExtendableMessageEventCustom.cpp > (right): > > ...
4 years, 10 months ago (2016-02-11 00:39:32 UTC) #31
nhiroki
Templatized duplicate binding code. Bashi-san, can you take another look? Thanks!
4 years, 10 months ago (2016-02-12 04:10:48 UTC) #32
bashi
bindings/ LGTM. Thank you for addressing comments!
4 years, 10 months ago (2016-02-12 04:43:57 UTC) #33
nhiroki
Kent-san, can you review Source/web/* and public/web/*? Thanks!
4 years, 10 months ago (2016-02-12 04:51:34 UTC) #35
tkent
On 2016/02/12 at 04:51:34, nhiroki wrote: > Kent-san, can you review Source/web/* and public/web/*? Thanks! ...
4 years, 10 months ago (2016-02-12 05:06:22 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1658073002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1658073002/280001
4 years, 10 months ago (2016-02-12 05:17:35 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:280001)
4 years, 10 months ago (2016-02-12 05:36:59 UTC) #43
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:41:50 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cde920bddbea22c192e1caa2c7c7ae0c821242c7
Cr-Commit-Position: refs/heads/master@{#375129}

Powered by Google App Engine
This is Rietveld 408576698