[whatwg] using postMessage() to send to a newly-created window

Darin Fisher darin at chromium.org
Wed Jan 6 09:58:15 PST 2010


On Wed, Jan 6, 2010 at 1:11 AM, Anne van Kesteren <annevk at opera.com> wrote:

> On Wed, 06 Jan 2010 06:30:17 +0100, Darin Fisher <darin at chromium.org>
> wrote:
>
>> I suspect the postMessage would be dispatched in this case, but the event
>> dispatch would probably go to the document at http://a/ instead of
>> http://b/.
>>
>
> This would fail as well because of the targetOrigin argument. (Unless that
> is * I guess, but can't you just check before invoking postMessage()
> anyway?)
>
>
It was given as "*" in the example.
-Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100106/6fd37c8b/attachment-0001.htm>


More information about the whatwg mailing list