W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] reply() extension to postMessage()

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 14 Feb 2008 17:18:36 +0100
Message-ID: <op.t6ivlakt64w2qv@annevk-t60.oslo.opera.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC