[webkit-dev] Passing data structures through postMessage()

Chris Campbell chris.c at flock.com
Thu Sep 10 17:09:44 PDT 2009


On Thu, Sep 10, 2009 at 4:55 PM, Sam Weinig <sam.weinig at gmail.com> wrote:
> It should not be necessary to serialize to a string just to pass the
> structured clones across thread boundaries.  This would be an especially bad
> idea for things like CanvasPixelArray.  I am also not sure I understand the
> name AttributeIterator.
> -Sam

Perhaps it's not necessary to serialize to a string.  However, there
is existing code that passes strings through and it would be nice not
to have to change all that.  Binary image data could be text-encoded.
That said, I'm open to binary serialization if it's not too big a
change.

"AttributeIterator" is supposed to convey that the class can be used
to recursively iterate over the properties/attributes of JS objects
and arrays.  (Though it can also represent primitive values.)  I'm
open to alternative names for this class, too.

--Chris


More information about the webkit-dev mailing list