Backed out changeset f65515f94aab (bug 987026) for apparently breaking ASAN mochitests, causing this CLOSED TREE

This commit is contained in:
Wes Kocher 2014-03-28 13:40:20 -07:00
parent 21fce3468c
commit 91bedd5149

View File

@ -240,11 +240,9 @@ FocusManager::ProcessDOMFocus(nsINode* aTarget)
DocAccessible* document =
GetAccService()->GetDocAccessible(aTarget->OwnerDoc());
if (!document)
return;
Accessible* target = document->GetAccessibleEvenIfNotInMapOrContainer(aTarget);
if (target) {
if (target && document) {
// Check if still focused. Otherwise we can end up with storing the active
// item for control that isn't focused anymore.
nsINode* focusedNode = FocusedDOMNode();