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

Issue 1159653002: [bindings] Introduce PostMessage extended keyword (Closed)

Created:
5 years, 7 months ago by vivekg_samsung
Modified:
5 years, 6 months ago
Reviewers:
haraken, vivekg, jsbell, scheib
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, falken, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+worker_chromium.org, kinuko+serviceworker, michaeln, nhiroki, rwlbuis, serviceworker-reviews, sof, tzik, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] [bindings] Introduce PostMessage extended keyword This CL is prelude to removal of usage of custom bindings for IDLs using postMessage. In that, it adds the support for the |PostMessage| extended keyword. R=haraken@chromium.org, jsbell@chromium.org BUG=345519 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195860

Patch Set 1 #

Total comments: 1

Patch Set 2 : Bindings change alone #

Total comments: 2

Patch Set 3 : Typo correction: missing space in methods.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 4 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
vivekg
This is a WIP patch to remove the custom bindings required for postMessage. Ideally we ...
5 years, 7 months ago (2015-05-25 09:56:29 UTC) #2
vivekg
Also this patch will be broken down in smaller pieces once we agree on the ...
5 years, 7 months ago (2015-05-25 09:57:22 UTC) #3
haraken
https://codereview.chromium.org/1159653002/diff/1/Source/core/dom/MessagePort.idl File Source/core/dom/MessagePort.idl (right): https://codereview.chromium.org/1159653002/diff/1/Source/core/dom/MessagePort.idl#newcode34 Source/core/dom/MessagePort.idl:34: [Custom=PostMessageCommon, RaisesException, Measure] void postMessage(any message, optional sequence<Transferable> transfer); ...
5 years, 7 months ago (2015-05-25 10:26:48 UTC) #4
haraken
The approach looks good to me. > One more doubt: Some of the classes pass ...
5 years, 7 months ago (2015-05-25 10:27:38 UTC) #5
vivekg
On 2015/05/25 at 10:26:48, haraken wrote: > https://codereview.chromium.org/1159653002/diff/1/Source/core/dom/MessagePort.idl > File Source/core/dom/MessagePort.idl (right): > > https://codereview.chromium.org/1159653002/diff/1/Source/core/dom/MessagePort.idl#newcode34 ...
5 years, 7 months ago (2015-05-25 11:32:39 UTC) #6
haraken
LGTM https://codereview.chromium.org/1159653002/diff/20001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/1159653002/diff/20001/Source/bindings/templates/methods.cpp#newcode476 Source/bindings/templates/methods.cpp:476: postMessageMethodCommon("{{interface_name}}", {{v8_class}}::toImpl(info.Holder()), info); Nit: I'd rename this to ...
5 years, 7 months ago (2015-05-25 11:37:45 UTC) #7
vivekg
https://codereview.chromium.org/1159653002/diff/20001/Source/bindings/templates/methods.cpp File Source/bindings/templates/methods.cpp (right): https://codereview.chromium.org/1159653002/diff/20001/Source/bindings/templates/methods.cpp#newcode476 Source/bindings/templates/methods.cpp:476: postMessageMethodCommon("{{interface_name}}", {{v8_class}}::toImpl(info.Holder()), info); On 2015/05/25 11:37:45, haraken wrote: > ...
5 years, 7 months ago (2015-05-25 11:40:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1159653002/40001
5 years, 7 months ago (2015-05-25 11:41:10 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195860
5 years, 7 months ago (2015-05-25 13:04:37 UTC) #11
scheib
Please document PostMessage on https://www.chromium.org/blink/webidl/blink-idl-extended-attributes
5 years, 6 months ago (2015-06-23 18:12:32 UTC) #13
vivekg
On 2015/06/23 at 18:12:32, scheib wrote: > Please document PostMessage on https://www.chromium.org/blink/webidl/blink-idl-extended-attributes Done. PTAL https://sites.google.com/a/chromium.org/dev/blink/webidl/blink-idl-extended-attributes?pli=1#TOC-PostMessage-m-
5 years, 6 months ago (2015-06-23 19:17:07 UTC) #14
blink-reviews
Thanks, though I don't understand from that documentation what is done differently in the bindings. ...
5 years, 6 months ago (2015-06-23 20:04:16 UTC) #15
vivekg
On 2015/06/23 at 20:04:16, blink-reviews wrote: > Thanks, though I don't understand from that documentation ...
5 years, 6 months ago (2015-06-24 00:57:35 UTC) #16
scheib
It helps somewhat? Expecting readers to find and read those patches isn't reasonable, that's why ...
5 years, 6 months ago (2015-06-24 03:52:20 UTC) #17
vivekg
On 2015/06/24 at 03:52:20, scheib wrote: > It helps somewhat? Expecting readers to find and ...
5 years, 6 months ago (2015-06-24 04:01:01 UTC) #18
haraken
5 years, 6 months ago (2015-06-24 04:25:27 UTC) #19
Message was sent while issue was closed.
On 2015/06/24 04:01:01, vivekg_ wrote:
> On 2015/06/24 at 03:52:20, scheib wrote:
> > It helps somewhat? Expecting readers to find and read those patches isn't
> > reasonable, that's why we have documentation. I suggest the documentation
> > address:
> > + Short explanation of why postMessage needs special handling, (seems to be
> > that transferable objects need handling, and exceptions). So, something
> > like "postMessage results in calls being made out of a worker to another
> > worker or main document. Transferable objects must be extracted for this,
> > ..... e.g. arrays ..... e.g. passing message ports ... .
> > + Indicate what the IDL looks like (done), and what the corresponding C++
> > interface must be.
> >
>
https://sites.google.com/a/chromium.org/dev/blink/webidl/blink-idl-extended-a...
> > is an example of this.
> > + Explain what those parameters are, what should an implementation do with
> > context, message, ports, and exceptionState?
> > 
> > A Blink developer who's never worked with postmessage or message ports
> > should be able to understand what these objects are for.
> > 
> 
> Yeah sure, I will update the documentation accordingly. Thanks for your
feedback
> :)

Yes, thanks for your feedback!

Powered by Google App Engine
This is Rietveld 408576698