зеркало из https://github.com/mozilla/pjs.git
Bug 512561 - Can't set focus to document via accessibility APIs while Adobe Flash plugin has focus. r=MarcoZ
This commit is contained in:
Родитель
09b010931e
Коммит
f0ad6ecc1f
|
@ -383,8 +383,7 @@ NS_IMETHODIMP nsDocAccessible::TakeFocus()
|
|||
|
||||
nsCOMPtr<nsIFocusManager> fm = do_GetService(FOCUSMANAGER_CONTRACTID);
|
||||
if (fm) {
|
||||
nsCOMPtr<nsIDOMDocument> domDocument;
|
||||
mDOMNode->GetOwnerDocument(getter_AddRefs(domDocument));
|
||||
nsCOMPtr<nsIDOMDocument> domDocument(do_QueryInterface(mDOMNode));
|
||||
nsCOMPtr<nsIDocument> document(do_QueryInterface(domDocument));
|
||||
if (document) {
|
||||
// focus the document
|
||||
|
|
Загрузка…
Ссылка в новой задаче