Open
Bug 855139
Opened 12 years ago
Updated 2 years ago
nsAppShell::ScheduleSyncSection may choose to run the event synchronously
Categories
(Toolkit :: General, defect)
Toolkit
General
Tracking
()
NEW
People
(Reporter: johns, Unassigned)
Details
nsBaseAppShell::ScheduleSyncSection features the following:
(@ http://dxr.mozilla.org/mozilla-central/widget/xpwidgets/nsBaseAppShell.cpp#l398)
> // Ensure we've got a pending event, else the callbacks will never run.
> if (!NS_HasPendingEvents(thread) && !DispatchDummyEvent(thread)) {
> RunSyncSections(true, 0);
> }
Which means we could potentially run all sync events immediately within a call, which is generally not what the callee is intending. However, it does not seem like DispatchDummyEvent should be fallible in this case, so this should be replaced with an assertion or abort. (or the check dropped entirely)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•