W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: connection ceremony for iframe postMessage communications

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 10 Feb 2012 00:42:38 +0000 (UTC)
To: John J Barton <johnjbarton@johnjbarton.com>
cc: public-webapps <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.64.1202100041560.13116@ps20323.dreamhostps.com>
On Thu, 9 Feb 2012, John J Barton wrote:
> 
> However the solution has two significant problems:
>   1. There is no way to know if portToOtherWindow is connected before
> you issue postMessage()

Just have the target message you when it's ready.


>   2. All iframes send messages to the same "handler".

Pass a MessagePort to the target when you start a new conversation, and 
do the rest of the conversation on that.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 10 February 2012 00:43:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT