[orca] Ensure ARIA links are not treated like anchors



commit 550ad8060c8b6016ef2b5efb9e4af0f74fa001dc
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Feb 28 14:06:02 2020 +0100

    Ensure ARIA links are not treated like anchors

 src/orca/scripts/web/script_utilities.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 3781b7af9..cc91ad23f 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -3096,7 +3096,8 @@ class Utilities(script_utilities.Utilities):
         rv = False
         if obj.getRole() == pyatspi.ROLE_LINK \
            and not obj.getState().contains(pyatspi.STATE_FOCUSABLE) \
-           and not 'jump' in self._getActionNames(obj):
+           and not 'jump' in self._getActionNames(obj) \
+           and not self._getXMLRoles(obj):
             rv = True
 
         self._isAnchor[hash(obj)] = rv


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