Closed Bug 1252698 Opened 10 years ago Closed 10 years ago

Add a function to spin the event loop in SpecialPowers

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

Attachments

(1 file)

There are a few places that need to synchronously spin the event loop. Some places use showModalDialog, which doesn't work in e10s and other use sync XHR. We should just provide a mechanism to use.
Assignee: nobody → mrbkap
Attached patch Patch v1Splinter Review
Attachment #8725484 - Flags: review?(felipc)
Comment on attachment 8725484 [details] [diff] [review] Patch v1 Review of attachment 8725484 [details] [diff] [review]: ----------------------------------------------------------------- Is there any practical difference between this and SpecialPowers.Services.tm.currentThread.processNextEvent(true)?
Attachment #8725484 - Flags: review?(felipc) → review+
dougt did exactly this in another bug. I think we'd probably want to do a "full spin" of the event loop (so, fire an event and process events until we run our event in order to increase the chances of something "bad" happening).
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: