[Webmessaging] .ports on MessageEvent objects should probably not be an IDL array

This is implementor feedback on 
http://www.w3.org/TR/webmessaging/#event-definitions

See https://www.w3.org/Bugs/Public/show_bug.cgi?id=23176

Note that there is no coverage of the behavior here in the test suite, 
apparently, so Blink's implementation doesn't match what the spec 
currently has at all, and doesn't so much match sanity.  For example, this:

   var a = new MessageChannel();
   var b = new MessageEvent('message', { ports: [a.port1, a.port2] });
   alert(b.ports == b.ports);

alerts false in Blink.  I can't check in IE because in IE10 the 
MessageEvent constructor throws when called as above and in IE9 there is 
no MessageChannel.

In any case, this section of the spec needs fixing and tests...

-Boris

Received on Friday, 6 September 2013 16:32:49 UTC