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)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mrbkap, Assigned: mrbkap)
Details
Attachments
(1 file)
|
1.20 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•10 years ago
|
Assignee: nobody → mrbkap
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8725484 -
Flags: review?(felipc)
Comment 2•10 years ago
|
||
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+
| Assignee | ||
Comment 3•10 years ago
|
||
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.
Description
•