W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2014

Re: [whatwg] BroadcastChannel should support structured clones

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 17 Apr 2014 15:09:43 -0700
Message-ID: <CA+c2ei_4hFxmegCK13LyiZV4pjwou_TyCUO44HrqizccR5VZvA@mail.gmail.com>
To: WHAT Working Group <whatwg@lists.whatwg.org>
Another thing that seems like an oversight in the spec is that the
spec currently says that BroadcastChannel should be exposed in Window
context. We should also expose it in Worker contexts.

/ Jonas

On Thu, Apr 17, 2014 at 2:32 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> It would be very useful to be able to send structured data, including
> Blobs, through the BroadcastChannel API.
>
> This is something we've seen any time we've done storage or message
> passing, that one of the first thing authors ask for is to not have to
> do JSON serialization/parsing manually. The ability to pass
> ArrayBuffers and Blobs is somewhat less commonly asked for, likely
> because binary data is less often used, but seems important
> nonetheless.
>
> We can't allow transferring of objects, since you can't transfer
> something to all listeners of a broadcasting API. But plain structured
> clones should be no problem to support conceptually (though more work
> to implement of course).
>
> We've started looking at doing structured clone support for Firefox
> and likely won't ship until we have that implemented.
>
> / Jonas
Received on Thursday, 17 April 2014 22:10:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:28 UTC