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

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 UTC