Closed Bug 1544936 Opened 7 years ago Closed 7 years ago

Support sending queries (messages with replies) for JSWindowActor

Categories

(Core :: DOM: Content Processes, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Fission Milestone M2
Tracking Status
firefox68 --- fixed

People

(Reporter: nika, Assigned: nika)

References

Details

Attachments

(2 files)

This adds a single new method, which acts like sendAsyncMessage, but also returns a promise. This promise is fulfilled when the promise returned from the receiveMessage callback is resolved.

partial interface JSWindowActor {
  [Throws]
  Promise<any> sendQuery(DOMString messageName,
                         optional any obj,
                         optional any transfers);
}

This adds a single new method, which acts like sendAsyncMessage, but
also returns a promise. This promise is fulfilled when the promise
returned from the receiveMessage callback is resolved.

partial interface JSWindowActor {
  [Throws]
  Promise<any> sendQuery(DOMString messageName,
                         optional any obj,
                         optional any transfers);
}
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a351207ac3e Part 1: Add a sendQuery method to send an async message with a response to JSWindowActor, r=mconley,jdai
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1d5a31398065 Part 2: Add a test for the new sendQuery method, r=jdai
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
See Also: → 1579536
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: