[orca] Descend objects with role embedded when getting onscreen objects



commit b0581e67bc948df29debb71f0c6073d6135243a4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Jul 6 17:18:37 2020 +0200

    Descend objects with role embedded when getting onscreen objects
    
    Not descending certain objects improves performance. But in the case of
    flat review in a web app, failure to descend objects with role embedded
    can cause the entire web app to not be flat-reviewable.

 src/orca/scripts/web/script_utilities.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index ac2b6ab30..22ff54812 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4996,6 +4996,9 @@ class Utilities(script_utilities.Utilities):
         return self._statusBar
 
     def getOnScreenObjects(self, root, extents=None):
+        if root and root.getRole() == pyatspi.ROLE_EMBEDDED:
+            return super().getOnScreenObjects(root, extents)
+
         if self._treatObjectAsWhole(root):
             return [root]
 


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