[orca] Ignore live region events where the child added has role unknown and br tag



commit 69afd01cd22935626e2172cd254164b87886344f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Feb 19 13:17:27 2020 +0100

    Ignore live region events where the child added has role unknown and br tag

 src/orca/scripts/web/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 189035779..527ad1507 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4626,7 +4626,7 @@ class Utilities(script_utilities.Utilities):
                 return False
 
             if role in [pyatspi.ROLE_UNKNOWN, pyatspi.ROLE_REDUNDANT_OBJECT] \
-               and not self._getTag(event.any_data):
+               and self._getTag(event.any_data) in ["", None, "br"]:
                 msg = "WEB: Child has unknown role and no tag %s" % event.any_data
                 debug.println(debug.LEVEL_INFO, msg, True)
                 return False


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