mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Bug 987026 - Crash when adopting a focused element [@ mozilla::a11y::FocusManager::ProcessDOMFocus], r=jwei
This commit is contained in:
parent
1d5f675f1b
commit
0044aa9e9b
@ -240,9 +240,11 @@ FocusManager::ProcessDOMFocus(nsINode* aTarget)
|
||||
|
||||
DocAccessible* document =
|
||||
GetAccService()->GetDocAccessible(aTarget->OwnerDoc());
|
||||
if (!document)
|
||||
return;
|
||||
|
||||
Accessible* target = document->GetAccessibleEvenIfNotInMapOrContainer(aTarget);
|
||||
if (target && document) {
|
||||
if (target) {
|
||||
// Check if still focused. Otherwise we can end up with storing the active
|
||||
// item for control that isn't focused anymore.
|
||||
nsINode* focusedNode = FocusedDOMNode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user