These changes have landed. sendMessageToJava is now dead.

On Mon, Aug 25, 2014 at 11:47 AM, Brian Nicholson
<[email protected]> wrote:
> There are some soon-to-be-landed changes in bug 1043633 and bug 1055144:
>
> Bug 1043633: The globally exported sendMessageToJava will become
> deprecated, replaced by Messaging.sendRequest. This change is being
> made so that Messaging.jsm follows the same namespace conventions as
> other modules.
>
> Bug 1055144: Instead of a single Messaging.sendRequest function that
> takes an optional callback parameter, this will be split into two
> functions: sendRequest and sendRequestForResult. The latter will
> replace the callback version of sendRequest (formerly
> sendMessageToJava), but rather than accepting a callback, it will
> instead return a Promise. This gives us better error propagation,
> along with the ability to write cleaner code that integrates with
> existing Promise-based APIs. The global two-arg sendMessageToJava will
> remain with deprecation warnings for add-on compatibility.
>
> Neither of these have landed yet, so please comment if you have any
> objections with the proposed APIs, implementations, naming, etc.
>
> Thanks,
> Brian
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to