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

Issue 264233003: Add blink-side binding code and tests for ServiceWorker -> Document postMessage (3/3) (Closed)

Created:
6 years, 7 months ago by kinuko
Modified:
6 years, 7 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+serviceworker_chromium.org, sof, arv+blink, jsbell+bindings_chromium.org, marja+watch_chromium.org, tzik, serviceworker-reviews, kouhei+bindings_chromium.org, nhiroki, abarth-chromium, falken, blink-reviews-bindings_chromium.org, horo+watch_chromium.org, Nate Chapin, alecflett+watch_chromium.org
Visibility:
Public.

Description

Add blink-side binding code and tests for ServiceWorker -> Document postMessage This is the last patch for postMessage plumbing: 1/3: https://codereview.chromium.org/263143004/ (blink) 2/3: https://codereview.chromium.org/246023007/ (chromium) 3/3: THIS PATCH BUG=366063 TEST=http/tests/serviceworker/postmessage-to-client.html R=jsbell@chromium.org, tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173736

Patch Set 1 : #

Total comments: 2

Patch Set 2 : added comment about targetOrigin #

Total comments: 3

Patch Set 3 : added tests/more code for MsgPort #

Patch Set 4 : added message port tests #

Total comments: 2

Patch Set 5 : moved code to Client.cpp #

Patch Set 6 : added Exposed=ServiceWorker in MessageChannel #

Patch Set 7 : remove local test remnant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -18 lines) Patch
A LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client.html View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/postmessage-msgport-to-client-expected.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/serviceworker/postmessage-to-client.html View 1 2 2 chunks +20 lines, -10 lines 0 comments Download
A + LayoutTests/http/tests/serviceworker/postmessage-to-client-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/postmessage-msgport-to-client-worker.js View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/virtual/serviceworker/http/tests/serviceworker/postmessage-msgport-to-client-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A + LayoutTests/virtual/serviceworker/http/tests/serviceworker/postmessage-to-client-expected.txt View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A + Source/bindings/v8/custom/V8ClientCustom.cpp View 3 chunks +5 lines, -4 lines 0 comments Download
M Source/core/dom/MessageChannel.idl View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Client.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/Client.cpp View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/Client.idl View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
kinuko
This is to be the last patch for postMessage, to add tests and remaining binding ...
6 years, 7 months ago (2014-05-06 07:51:02 UTC) #1
Inactive
https://codereview.chromium.org/264233003/diff/20001/Source/modules/serviceworkers/Client.idl File Source/modules/serviceworkers/Client.idl (right): https://codereview.chromium.org/264233003/diff/20001/Source/modules/serviceworkers/Client.idl#newcode10 Source/modules/serviceworkers/Client.idl:10: [Custom, RaisesException] void postMessage(SerializedScriptValue message, optional MessagePort[] messagePorts); Looks ...
6 years, 7 months ago (2014-05-06 12:26:13 UTC) #2
kinuko
https://codereview.chromium.org/264233003/diff/20001/Source/modules/serviceworkers/Client.idl File Source/modules/serviceworkers/Client.idl (right): https://codereview.chromium.org/264233003/diff/20001/Source/modules/serviceworkers/Client.idl#newcode10 Source/modules/serviceworkers/Client.idl:10: [Custom, RaisesException] void postMessage(SerializedScriptValue message, optional MessagePort[] messagePorts); On ...
6 years, 7 months ago (2014-05-06 13:57:36 UTC) #3
marja
https://codereview.chromium.org/264233003/diff/40001/LayoutTests/http/tests/serviceworker/postmessage-to-client.html File LayoutTests/http/tests/serviceworker/postmessage-to-client.html (right): https://codereview.chromium.org/264233003/diff/40001/LayoutTests/http/tests/serviceworker/postmessage-to-client.html#newcode35 LayoutTests/http/tests/serviceworker/postmessage-to-client.html:35: w.navigator.serviceWorker.current.postMessage('ping'); Is it also possible to post a message ...
6 years, 7 months ago (2014-05-06 16:29:15 UTC) #4
jsbell
lgtm - but I agree with marja that we should test posting another port through, ...
6 years, 7 months ago (2014-05-06 17:43:50 UTC) #5
jsbell
https://codereview.chromium.org/264233003/diff/40001/Source/bindings/v8/custom/V8ClientCustom.cpp File Source/bindings/v8/custom/V8ClientCustom.cpp (right): https://codereview.chromium.org/264233003/diff/40001/Source/bindings/v8/custom/V8ClientCustom.cpp#newcode35 Source/bindings/v8/custom/V8ClientCustom.cpp:35: client->postMessage(context, message.release(), &ports, exceptionState); Actually... what's this patch based ...
6 years, 7 months ago (2014-05-06 22:15:24 UTC) #6
kinuko
Added missing code and test for MessagePort. The test worked, but it's crashing at shutdown ...
6 years, 7 months ago (2014-05-07 09:12:15 UTC) #7
kinuko
On 2014/05/07 09:12:15, kinuko wrote: > Added missing code and test for MessagePort. The test ...
6 years, 7 months ago (2014-05-07 19:26:09 UTC) #8
jsbell
lgtm https://codereview.chromium.org/264233003/diff/80001/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp File Source/web/ServiceWorkerGlobalScopeClientImpl.cpp (right): https://codereview.chromium.org/264233003/diff/80001/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp#newcode94 Source/web/ServiceWorkerGlobalScopeClientImpl.cpp:94: blink::WebString messageString = message->toWireString(); Just curious - is ...
6 years, 7 months ago (2014-05-07 23:46:32 UTC) #9
haraken
bindings/ LGTM
6 years, 7 months ago (2014-05-08 00:35:42 UTC) #10
kinuko
https://codereview.chromium.org/264233003/diff/80001/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp File Source/web/ServiceWorkerGlobalScopeClientImpl.cpp (right): https://codereview.chromium.org/264233003/diff/80001/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp#newcode94 Source/web/ServiceWorkerGlobalScopeClientImpl.cpp:94: blink::WebString messageString = message->toWireString(); On 2014/05/07 23:46:33, jsbell wrote: ...
6 years, 7 months ago (2014-05-08 02:28:22 UTC) #11
kinuko
Kent-san, could you do owner review for Source/web changes?
6 years, 7 months ago (2014-05-08 02:29:12 UTC) #12
tkent
lgtm
6 years, 7 months ago (2014-05-08 02:40:01 UTC) #13
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 02:29:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/264233003/100001
6 years, 7 months ago (2014-05-09 02:31:41 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 02:31:55 UTC) #16
commit-bot: I haz the power
Failed to apply patch for LayoutTests/http/tests/serviceworker/postmessage-to-client-expected.txt: While running svn copy LayoutTests/http/tests/serviceworker/current-on-load-expected.txt LayoutTests/http/tests/serviceworker/postmessage-to-client-expected.txt --config-dir /b/infra_internal/commit_queue/subversion_config --non-interactive ...
6 years, 7 months ago (2014-05-09 02:31:55 UTC) #17
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 04:32:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/264233003/100001
6 years, 7 months ago (2014-05-09 04:33:40 UTC) #19
kinuko
Ok I found 'new MessageChannel' suddenly stopped working in ServiceWorker due to http://crbug.com/369115 work. I ...
6 years, 7 months ago (2014-05-09 05:57:57 UTC) #20
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 05:59:17 UTC) #21
haraken
On 2014/05/09 05:57:57, kinuko wrote: > Ok I found 'new MessageChannel' suddenly stopped working in ...
6 years, 7 months ago (2014-05-09 05:59:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/264233003/140001
6 years, 7 months ago (2014-05-09 06:00:42 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 07:14:00 UTC) #24
kinuko
6 years, 7 months ago (2014-05-09 08:34:30 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 manually as r173736 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698