[orca] Treat web documents as top-level roles for the purpose of Zombie detection



commit d2c11324e0af5a71488b3cf87e7adfd11f6e8830
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Aug 31 14:57:57 2015 -0400

    Treat web documents as top-level roles for the purpose of Zombie detection

 src/orca/script_utilities.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 40622d1..394f395 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2883,6 +2883,9 @@ class Utilities:
         topLevelRoles = [pyatspi.ROLE_APPLICATION,
                          pyatspi.ROLE_ALERT,
                          pyatspi.ROLE_DIALOG,
+                         pyatspi.ROLE_DOCUMENT_FRAME,
+                         pyatspi.ROLE_DOCUMENT_WEB,
+                         pyatspi.ROLE_EMBEDDED,
                          pyatspi.ROLE_WINDOW,
                          pyatspi.ROLE_FRAME]
         if obj.getIndexInParent() == -1 and role not in topLevelRoles:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]