[orca/gnome-3-34] Chromium: Fix bug in heuristic for find-in-page dialog box



commit 881a0e33e8be16dcb46e0b1989af4e95459eb4f1
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Nov 15 15:49:08 2019 -0500

    Chromium: Fix bug in heuristic for find-in-page dialog box

 src/orca/scripts/toolkits/Chromium/script_utilities.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py 
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index c896a3399..18506cb08 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -431,11 +431,13 @@ class Utilities(web.Utilities):
         if len(self.findAllDescendants(obj, isButton)) != 3:
             msg = "CHROMIUM: %s not believed to be find-in-page container (button count)" % obj
             debug.println(debug.LEVEL_INFO, msg, True)
+            return False
 
         isSeparator = lambda x: x.getRole() == pyatspi.ROLE_SEPARATOR
         if len(self.findAllDescendants(obj, isSeparator)) != 1:
             msg = "CHROMIUM: %s not believed to be find-in-page container (separator count)" % obj
             debug.println(debug.LEVEL_INFO, msg, True)
+            return False
 
         msg = "CHROMIUM: %s believed to be find-in-page container (accessibility tree)" % obj
         debug.println(debug.LEVEL_INFO, msg, True)


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