[orca] Treat ROLE_PAGE as a top-level object when doing Zombie checks



commit 529dbfcb1618cb453e6b247ad04d9ce82538c022
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 26 12:21:48 2015 -0500

    Treat ROLE_PAGE as a top-level object when doing Zombie checks
    
    In Evince documents, the page children of the document frame are
    sometimes reporting an index in parent of -1. Now that we're doing
    more aggressive checks for Zombies, this bug causes Orca to not
    present the content.

 src/orca/script_utilities.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 8dce13a..2bdd439 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3162,6 +3162,7 @@ class Utilities:
         topLevelRoles = [pyatspi.ROLE_APPLICATION,
                          pyatspi.ROLE_ALERT,
                          pyatspi.ROLE_DIALOG,
+                         pyatspi.ROLE_PAGE, # For Evince bug
                          pyatspi.ROLE_WINDOW,
                          pyatspi.ROLE_FRAME]
         if index == -1 and role not in topLevelRoles:


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