Closed Bug 1628281 Opened 5 years ago Closed 5 years ago

Add shared executeSoon method to Sync.jsm

Categories

(Remote Protocol :: Agent, enhancement, P3)

enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Several Javascript modules are using Services.tm.dispatchToMainThread() to wait for the next event tick and run the function on the main thread. Similar to Marionette we should have this as shared method in Sync.jsm.

I might need it as part of Page.frameAttached (bug 1599413) so I will just add it now.

Sorry, I had the wrong bug number in the commit message on bug 1599413...

(In reply to Pulsebot from bug 1599413 comment #9)

Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e5dac7407c50
[remote] Add executeSoon to sync helper methods.
r=remote-protocol-reviewers,jgraham

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
You need to log in before you can comment on or make changes to this bug.