[orca] Chromium: Don't treat find-in-page dialog as top-level object



commit d04da68013ebcc6fbd252228d8deab753fc311de
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Aug 1 11:56:05 2019 -0400

    Chromium: Don't treat find-in-page dialog as top-level object
    
    It has role dialog, but it's not functioning as a window; it's more
    of a popup. The top level is the application frame.

 src/orca/scripts/toolkits/Chromium/script_utilities.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py 
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index dd7cb0c56..c6772dc9d 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -269,7 +269,12 @@ class Utilities(web.Utilities):
 
         result = super().topLevelObject(obj)
         if result and result.getRole() in self._topLevelRoles():
-            return result
+            if not self.isFindDialog(result):
+                return result
+            else:
+                msg = "CHROMIUM: Top level object for %s is %s" % (obj, result.parent)
+                debug.println(debug.LEVEL_INFO, msg, True)
+                return result.parent
 
         cached = self._topLevelObject.get(hash(obj))
         if cached is not None:


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