fixes bug 135547 "make event queues more robust"

r=danm sr=rpotts,brendan


git-svn-id: svn://10.0.0.236/trunk@118682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-04-11 00:16:04 +00:00
parent d471bf6ed8
commit fd0ff3aab6
2 changed files with 7 additions and 0 deletions

View File

@@ -386,6 +386,12 @@ nsEventQueueImpl::ProcessPendingEvents()
}
#endif
PL_ProcessPendingEvents(mEventQueue);
// if we're no longer accepting events and there are still events in the
// queue, then process remaining events.
if (!mAcceptingEvents && PL_EventAvailable(mEventQueue))
PL_ProcessPendingEvents(mEventQueue);
CheckForDeactivation();
if (mElderQueue) {