Provide wrapper for "resolve this promise on response from thread" #22518
Labels
A-content/dom
Interacting with the DOM from web content
I-cleanup
No impact; the issue is one of maintainability or tidiness.
A lot of the WebVR/WebXR stuff involves communicating with another thread and waiting on the response to resolve a promise.
We should have a helper function that, given a closure and an IPC receiver, will wait for a message and once it has arrived, call the closure on the message's response and resolve the promise with its result
The text was updated successfully, but these errors were encountered: