Closed Bug 1248497 Opened 4 years ago Closed 4 years ago

Add promise support to the sendMessage APIs.

Categories

(WebExtensions :: Untriaged, defect, P2)

defect

Tracking

(firefox47 fixed)

RESOLVED FIXED
mozilla47
Iteration:
47.3 - Mar 7
Tracking Status
firefox47 --- fixed

People

(Reporter: kmag, Assigned: kmag)

Details

(Whiteboard: triaged)

Attachments

(1 file)

We should both return promises from the sendMessage functions, and allow the listener functions to return Promise objects, rather than `true`, to send a delayed response.
Iteration: --- → 47.3 - Mar 7
Flags: blocking-webextensions?
Priority: -- → P2
Whiteboard: triaged
Comment on attachment 8724322 [details]
MozReview Request: Bug 1248497 – Add promise support to the sendMessage APIs. r?billm

https://reviewboard.mozilla.org/r/36979/#review33805

::: browser/components/extensions/test/browser/browser_ext_tabs_sendMessage.js:24
(Diff revision 1)
> +              browser.test.fail("Got unexpected resposne callback");

response
Attachment #8724322 - Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/mozilla-central/rev/0a65c11157da
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.