W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

[Bug 13525] Define what .origin should be for message events

From: <bugzilla@jessica.w3.org>
Date: Mon, 08 Aug 2011 21:16:39 +0000
To: public-webapps@w3.org
Message-Id: <E1QqXBf-0000GQ-NA@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13525

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ian@hixie.ch
         Resolution|                            |NEEDSINFO

--- Comment #2 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-08-08 21:16:39 UTC ---
http://www.whatwg.org/specs/web-apps/current-work/complete.html#messageevent
defines the default as being the empty string, yes.

What origin would you want it set to? Web Sockets by definition are same-origin
with whatever script created them (they don't connect successfully otherwise).
I suppose we could parse WebSocket.url and set MessageEvent.origin to the
scheme, host, and port parts of that URL, but that seems a bit awkward (and
wouldn't really be an origin in the technical sense).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 8 August 2011 21:16:41 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT