[orca] Don't look for zombie replicants in ROLE_EMBEDDED objects



commit c5accd7bebadffb6e5df2f4819a5264fdb63187b
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Mar 13 09:51:49 2015 -0400

    Don't look for zombie replicants in ROLE_EMBEDDED objects
    
    If a new ROLE_EMBEDDED object shows up, odds are that the zombie locus
    of focus is properly dead (as opposed to killed for sport by the app).
    Plus, if that object has a giant and/or broken table, we can hang waiting
    for pyatspi to get back to us.

 src/orca/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 1185916..ba552a1 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2704,7 +2704,7 @@ class Utilities:
         # Given an broken table hierarchy, findDescendant can hang. And the
         # reason we're here in the first place is to work around the app or
         # toolkit killing accessibles. There's only so much we can do....
-        if root.getRole() == pyatspi.ROLE_TABLE:
+        if root.getRole() in [pyatspi.ROLE_TABLE, pyatspi.ROLE_EMBEDDED]:
             return None
 
         isSame = lambda x: x and self.isSameObject(


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