[orca] Chromium: Fix bug in heuristic for find-in-page dialog box
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Fix bug in heuristic for find-in-page dialog box
- Date: Fri, 15 Nov 2019 20:49:33 +0000 (UTC)
commit b2ea46f9575a3d0d64be61af35d81f1ca4ad8a02
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]