W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] postMessage's target origin argument can be a full URL in some implementations

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 14 Jul 2010 16:33:24 -0700
Message-ID: <AANLkTil3savNXtU1HlSQt0OlGl5dtZKLa_PLqUffD-MA@mail.gmail.com>
On Wed, Jul 14, 2010 at 3:48 PM, Hallvord R M Steen <hallvors at gmail.com> wrote:
>> My understanding is that this was a requirement from the spec. An
>> unfortunate one at that.
> Could you elaborate on why you think it is unfortunate?

I think it's unfortunate that if someone does:

postMessage(..., "http://foo.com/bar/baz.html");

that message can silently go to


The problem here is the 'silently'. If we instead made the above throw
an exception then it would be more obvious for authors how this

>> However when I found out it was too late to
>> get the spec changed as multiple implementations had already shipped.
> Does that mean you intend to fix it to align with the spec?

I didn't realize that the spec now required that there was no path.
Yes, I think we should update to match the spec. There is of course
the risk that it'll break the web, but I think we should at least try.

Would love it if someone attached a patch. I can promise same-day
review if I'm not in travel.

/ Jonas
Received on Wednesday, 14 July 2010 16:33:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:24 UTC