Bug 506206 - ASSERTION: There should always be a DOM node for an event, one more patch, r=davidb

This commit is contained in:
Alexander Surkov
2011-10-12 00:33:06 +09:00
parent c265b4f204
commit d752b2ba93
2 changed files with 12 additions and 15 deletions

View File

@@ -316,6 +316,10 @@ NotificationController::WillRefresh(mozilla::TimeStamp aTime)
for (PRUint32 idx = 0; idx < eventCount; idx++) {
AccEvent* accEvent = events[idx];
if (accEvent->mEventRule != AccEvent::eDoNotEmit) {
nsAccessible* target = accEvent->GetAccessible();
if (!target || target->IsDefunct())
continue;
// Dispatch the focus event if target is still focused.
if (accEvent->mEventType == nsIAccessibleEvent::EVENT_FOCUS) {
FocusMgr()->ProcessFocusEvent(accEvent);