diff --git a/accessible/src/base/nsDocAccessible.cpp b/accessible/src/base/nsDocAccessible.cpp index 8d93afb9f76..912385e1f81 100644 --- a/accessible/src/base/nsDocAccessible.cpp +++ b/accessible/src/base/nsDocAccessible.cpp @@ -380,10 +380,12 @@ NS_IMETHODIMP nsDocAccessible::TakeFocus() if (document) { // focus the document nsCOMPtr newFocus; - fm->MoveFocus(document->GetWindow(), nsnull, nsIFocusManager::MOVEFOCUS_ROOT, 0, - getter_AddRefs(newFocus)); + return fm->MoveFocus(document->GetWindow(), nsnull, + nsIFocusManager::MOVEFOCUS_ROOT, 0, + getter_AddRefs(newFocus)); } } + return NS_ERROR_FAILURE; } // ------- nsIAccessibleDocument Methods (5) ---------------