Bug 506206 - ASSERTION: There should always be a DOM node for an event, one more patch, r=davidb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user