[orca/gnome-3-16] Don't look for zombie replicants in ROLE_EMBEDDED objects
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-16] Don't look for zombie replicants in ROLE_EMBEDDED objects
- Date: Fri, 13 Mar 2015 13:55:46 +0000 (UTC)
commit 7225f734a0b8e608d1dee48379000c70e0ee5719
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]