[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Proposing we add window.opener as postMessage target for dialogs
I propose that dialogs first check window.opener , then window.parent, for sending messages via postMessage. This allows clients to open dialogs in a new window rather than an iframe. This is particularly important for mobile.
On a phone, it's difficult to display a dialog in an iframe on the same page because the display is so small, and in my reference implementation , I open a new browser window for dialogs on small displays. window.opener allows the dialog to send results back to the client even in a new window. It is supported in mobile browsers except Windows phone.
This could make sense even in desktop browsers. As a client, I might prefer to open a new browser window than to style a floating <iframe> to look like a dialog.
This should have a minimal impact on n-1 compatibility as well.
Samuel Padgett | IBM Rational | firstname.lastname@example.org
Eclipse Lyo: Enabling tool integration with OSLC