From 6b2062b1d2643343eabbe7d13fe8ec96ed2d3666 Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Thu, 2 Dec 2010 16:47:20 +0800 Subject: [PATCH] Bug 615220 - Don't fire focus event for current focused accessible when document gets focus, r=davidb, a=davidb --- accessible/src/base/nsRootAccessible.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/accessible/src/base/nsRootAccessible.cpp b/accessible/src/base/nsRootAccessible.cpp index d43fd73f69a3..3495c1a9c5aa 100644 --- a/accessible/src/base/nsRootAccessible.cpp +++ b/accessible/src/base/nsRootAccessible.cpp @@ -621,13 +621,6 @@ nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent) else #endif if (eventType.EqualsLiteral("focus")) { - if (targetNode == mDocument && mDocument != 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. - NS_DISPATCH_RUNNABLEMETHOD(FireCurrentFocusEvent, this) - } - // Keep a reference to the target node. We might want to change // it to the individual radio button or selected item, and send // the focus event to that.