[whatwg] reply() extension to postMessage()

Hi,

Given that everyone is now updating their postMessage() code anyway, I  
wonder if it's possible to quickly make another minor tweak. The proposal  
is to remove the source attribute from MessageEvent and replace it with a  
reply() method. The semantics of the reply() are probably best described  
in terms of equivalence. That is,

   e.reply(message)

is equivalent to

   e.source.postMessage(message, e.origin)

except that the latter won't work anymore when reply() is added.

Kind regards,


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 14 February 2008 08:18:36 UTC