[webkit-dev] starting implementation of postMessage tranferables
David Levin
levin at chromium.org
Thu Sep 22 18:00:31 PDT 2011
*Summary*: Implementing postMessage with transferable support as
webkitPostMessage.
*Details*:
*Spec*:
http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#posting-messages
This describes window.postMessage and the same is true for Message Ports and
Worker Context. It doesn't mention Array Buffers but that will be mentioned
soon and is in the spec that talks about Array Buffers.
Tracking bug: https://bugs.webkit.org/show_bug.cgi?id=64629
*Plan*:
1. Add webkitPostMessage to all of these places to isolate us from possible
spec changes. It will have the same functionality as postMessage.
2. Add the ability to transfer Message Ports.
3. Add the ability to transfer Array Buffers.
We don't plan to put ifdef's around this as we'll do an implementation for
all ports and js engines and each patch is complete by itself. (Even when
using webkitPostMessage, one has to be careful to verify that the items
being transfered may be transfered. After step 1, the answer is no to
everything.)
I didn't send this earlier because we were doing this in postMessage and it
was in the spec but it would have been good to send out the email even then.
dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110922/950abca7/attachment.html>
More information about the webkit-dev
mailing list