[whatwg] reply() extension to postMessage()

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


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,


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

More information about the whatwg mailing list