[orca] Add ROLE_EMBEDDED to document roles in getDocumentForObject.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add ROLE_EMBEDDED to document roles in getDocumentForObject.
- Date: Tue, 2 Jun 2015 22:48:13 +0000 (UTC)
commit 9834cc740f0e90e5df542a7b72db65ffd388c30f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 2 18:46:59 2015 -0400
Add ROLE_EMBEDDED to document roles in getDocumentForObject.
We cannot always count on embedded web apps having a document frame
in its ancestry.
.../scripts/toolkits/Gecko/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 772f52e..0088f11 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -126,7 +126,7 @@ class Utilities(script_utilities.Utilities):
if not obj:
return None
- roles = [pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_DOCUMENT_WEB]
+ roles = [pyatspi.ROLE_DOCUMENT_FRAME, pyatspi.ROLE_DOCUMENT_WEB, pyatspi.ROLE_EMBEDDED]
isDocument = lambda x: x and x.getRole() in roles
if isDocument(obj):
return obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]