Bug 400310. Deadlock when Thunderbird starts with Accessibility, or when Firefox starts after an auto-update, effective 2007-10-07. Patch by Ginn Chen, r=aaronlev, a=beltzner

This commit is contained in:
aaronleventhal@moonset.net 2007-10-29 11:01:43 -07:00
parent 3f4ed92185
commit 6ff458ce69

View File

@ -731,7 +731,7 @@ nsresult nsRootAccessible::HandleEventWithTarget(nsIDOMEvent* aEvent,
else
#endif
if (eventType.EqualsLiteral("focus")) {
if (aTargetNode == mDOMNode) {
if (aTargetNode == mDOMNode && mDOMNode != gLastFocusedNode) {
// Got focus event for the window, we will make sure that an accessible
// focus event for initial focus is fired. We do this on a short timer
// because the initial focus may not have been set yet.