[orca] Add explicit do-not-descend-for-caret check for ROLE_IMAGE



commit 8a0ee15c7e980b83813845162d8d85d603d3a001
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Sep 12 14:42:06 2016 -0400

    Add explicit do-not-descend-for-caret check for ROLE_IMAGE
    
    Images should not implement the accessible text interface so why bother
    checking? Answer: If ARIA role="img" is used, it changes the role, but
    not the interfaces implemented. Thus it is possible to have an image whose
    child is a document. If the author tells us something is an image, we need
    to trust the author.

 src/orca/scripts/web/script_utilities.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c450e8f..329a5c2 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2847,6 +2847,7 @@ class Utilities(script_utilities.Utilities):
             return False
 
         doNotDescend = [pyatspi.ROLE_COMBO_BOX,
+                        pyatspi.ROLE_IMAGE,
                         pyatspi.ROLE_LIST_BOX,
                         pyatspi.ROLE_MENU_BAR,
                         pyatspi.ROLE_MENU,


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