[whatwg] reply() extension to postMessage()

Anne van Kesteren annevk at opera.com
Thu Feb 14 08:18:36 PST 2008


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/>



More information about the whatwg mailing list