Support sending queries (messages with replies) for JSWindowActor

RESOLVED FIXED in Firefox 68

Status

()

defect
P2
normal
RESOLVED FIXED
a month ago
28 days ago

People

(Reporter: Nika, Assigned: Nika)

Tracking

unspecified
mozilla68
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Fission Milestone:M2, firefox68 fixed)

Details

Attachments

(2 attachments)

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);
}

Comment 3

28 days ago
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

Comment 4

28 days ago
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

Comment 5

28 days ago
bugherder
Status: NEW → RESOLVED
Last Resolved: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.