Re: connection ceremony for iframe postMessage communications

On Fri, 10 Feb 2012, John J Barton wrote:
> On Fri, Feb 10, 2012 at 10:58 AM, Ian Hickson <ian@hixie.ch> wrote:
> > On Fri, 10 Feb 2012, John J Barton wrote:
> >>
> >> Just to clarify, I want to see the layer you just outlined be 
> >> standard so we can design iframe components and apps to mix and 
> >> match. This can be two simple layers on the current messaging: 1) the 
> >> connection ceremony, 2) the key/API format.
> >
> > No reason for it to be standard, just define it as part of the 
> > protocol you are implementing over postMessage().
> 
> Ok, so I define it for my app. You write an iframe. You read my 
> definition and I can load your iframe. Yay!
> 
> Then Boris write an app. He defines it for his app. You change your 
> iframe to deal with my app and Boris' app. Ok.
> 
> Then Mark Zuckerberg and Larry Page define apps. Soon you are spending 
> all of your money hiring devs to deal with connection protocols.
> 
> Then maybe you will have a reason for a standard?

Why would the connectivity part of this be the hard part? Each of these 
apps has an entire protocol you'll have to reimplement if you want to 
connect to it! The connectivity part is trivial in comparison.

I'm all for people standardising their postMessage() protocols, though, 
if they want to. Nothing is stopping people from doing so.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 10 February 2012 21:37:35 UTC