[webkit-dev] webkitPostMessage

Adam Barth abarth at webkit.org
Wed Apr 11 00:44:29 PDT 2012


[+dslomov]

I found a thread on public-webapps that seems related to this
question.  Dmitry, do you know what current status is here?  I'd like
to make sure we're on a path towards interoperability with other
browsers.

Thanks,
Adam


On Tue, Apr 10, 2012 at 9:08 PM, Adam Barth <abarth at webkit.org> wrote:
> I'm trying to understand why we have both DOMWindow.webkitPostMessage
> and DOMWindow.postMessage.  I'm also trying to understand the
> following comment in {JS,V8}DOMWindowCustom.cpp:
>
>    // This function has variable arguments and can be:
>    // Per current spec:
>    //   postMessage(message, targetOrigin)
>    //   postMessage(message, targetOrigin, {sequence of transferrables})
>    // Legacy non-standard implementations in webkit allowed:
>    //   postMessage(message, {sequence of transferrables}, targetOrigin);
>
> Specifically:
>
> 1) Can we remove webkitPostMessage?  If we can't remove it now, is
> there a time in the future at which we can remove it?
>
> 2) Can we adopt the behavior in the specification (and drop the
> non-standard behavior)?  If not, should we change the specification to
> match our behavior?
>
> Many thanks,
> Adam


More information about the webkit-dev mailing list