WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 94477
Update postMessage declaration in MessagePort.idl
https://bugs.webkit.org/show_bug.cgi?id=94477
Summary
Update postMessage declaration in MessagePort.idl
Chris Dumez
Reported
2012-08-20 07:04:35 PDT
postMessage() / webkitPostMessage() are defined as follows in MessagePort.idl: [Custom] void postMessage(in DOMString message, in [Optional] Array messagePorts) [Custom] void webkitPostMessage(in DOMString message, in [Optional] Array transfer) According to the spec (
http://www.w3.org/TR/html5/comms.html#messageport
), the first argument should be of type 'any', not 'DOMString'. We currently don't notice the issue cause we provide custom implementation for those methods and the custom implementation handles the first argument as being of type 'any'. We should however update MessagePort.idl to avoid confusion.
Attachments
Patch
(1.76 KB, patch)
2012-08-20 07:07 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2012-08-20 07:07:54 PDT
Created
attachment 159419
[details]
Patch
Kentaro Hara
Comment 2
2012-08-20 08:49:21 PDT
Comment on
attachment 159419
[details]
Patch The change looks reasonable. DedicatedWorkerContext.idl already uses 'any' for postMessage() and webkitPostMessage().
> We currently don't notice the issue cause we provide custom implementation for those methods and the custom implementation handles the first argument as being of type 'any'.
Note: Code generators do not yet support 'any', so we can use 'any' only for custom implementations. We want to fix it.
WebKit Review Bot
Comment 3
2012-08-20 09:39:26 PDT
Comment on
attachment 159419
[details]
Patch Clearing flags on attachment: 159419 Committed
r126040
: <
http://trac.webkit.org/changeset/126040
>
WebKit Review Bot
Comment 4
2012-08-20 09:39:32 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug