Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-15 Thread Ian Hickson
On Tue, 15 Sep 2009, Sidney San Martín wrote: > > > > On Mon, Sep 14, 2009 at 3:06 PM, Ian Hickson wrote: > > > > 4. Open a SharedWorker and send a MessagePort to the other window. > > I'm not too familiar with shared workers, but I read through the spec > and it looks like they suffer from the

Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-15 Thread Ian Hickson
On Mon, 14 Sep 2009, Jeremy Orlow wrote: > On Mon, Sep 14, 2009 at 3:06 PM, Ian Hickson wrote: > > On Mon, 14 Sep 2009, Sidney San Mart�n wrote: > > > > > > The cross-document messaging API solves a lot of problems and is > > > overall an Awesome Thing, but requiring a reference to the target >

Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-15 Thread Sidney San Martín
> On Mon, Sep 14, 2009 at 3:06 PM, Ian Hickson wrote: > > 4. Open a SharedWorker and send a MessagePort to the other window. I'm not too familiar with shared workers, but I read through the spec and it looks like they suffer from the SOP (as Drew mentioned). (LocalStorage also suffers from this,

Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-14 Thread Jeremy Orlow
On Mon, Sep 14, 2009 at 3:06 PM, Ian Hickson wrote: > On Mon, 14 Sep 2009, Sidney San Martín wrote: > > > > The cross-document messaging API solves a lot of problems and is overall > > an Awesome Thing, but requiring a reference to the target window is > > hugely limiting. When a a window wants t

Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-14 Thread Ian Hickson
On Mon, 14 Sep 2009, Sidney San Martín wrote: > > The cross-document messaging API solves a lot of problems and is overall > an Awesome Thing, but requiring a reference to the target window is > hugely limiting. When a a window wants to talk to another window and > didn't create it, there are ba

Re: [whatwg] Inter-window communication beyond window.postMessage()

2009-09-14 Thread Drew Wilson
Agreed - I've always felt like having to have a reference to a window would be an obstacle. I feel obliged to point out that cross-domain SharedWorkers might be another option for two completely unrelated windows to interact, although the suggestions I've heard for APIs for x-domain access seem to

[whatwg] Inter-window communication beyond window.postMessage()

2009-09-14 Thread Sidney San Martín
The cross-document messaging API solves a lot of problems and is overall an Awesome Thing, but requiring a reference to the target window is hugely limiting. When a a window wants to talk to another window and didn't create it, there are basically three options: 1. window.open with a window