Bug 959257 - Google's search box may not emit caret move events. r=tbsaunde
authorJonathan Wei <jwei@mozilla.com>
Wed, 29 Jan 2014 17:07:35 -0500
changeset 181895 0cd483927c59d806a996cc2cf95287748dc85fcb
parent 181894 5b1a561bd89e7e5249c3235c62982b754dbe6471
child 181896 d890e603d751c465f2a0e2d2221e033b32afe4a9
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs959257
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 959257 - Google's search box may not emit caret move events. r=tbsaunde
accessible/src/generic/DocAccessible.cpp
--- a/accessible/src/generic/DocAccessible.cpp
+++ b/accessible/src/generic/DocAccessible.cpp
@@ -1912,18 +1912,20 @@ DocAccessible::UpdateTreeInternal(Access
     if (parent)
       parent->RemoveChild(aChild);
 
     UncacheChildrenInSubtree(aChild);
   }
 
   // XXX: do we really want to send focus to focused DOM node not taking into
   // account active item?
-  if (focusedAcc)
+  if (focusedAcc) {
     FocusMgr()->DispatchFocusEvent(this, focusedAcc);
+    SelectionMgr()->SetControlSelectionListener(focusedAcc->GetNode()->AsElement());
+  }
 
   return updateFlags;
 }
 
 void
 DocAccessible::CacheChildrenInSubtree(Accessible* aRoot,
                                       Accessible** aFocusedAcc)
 {