[orca] Chromium: Fix bug in hack to get top-level object



commit 13ad1b2c27c2f59ac52de223a6c770602d88ed51
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jan 8 17:10:20 2019 -0500

    Chromium: Fix bug in hack to get top-level object

 src/orca/scripts/toolkits/Chromium/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py 
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 7c63f4a2a..5f76ea1ea 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -275,7 +275,7 @@ class Utilities(web.Utilities):
         if self.isDocument(topLevel) and orca_state.activeWindow \
            and orca_state.activeWindow.getApplication() == self._script.app:
             startTime = time.time()
-            descendant = pyatspi.findDescendant(topLevel, lambda x: x == topLevel)
+            descendant = pyatspi.findDescendant(orca_state.activeWindow, lambda x: x == topLevel)
             msg = "CHROMIUM: findDescendant() - %.4fs" % (time.time()-startTime)
             debug.println(debug.LEVEL_INFO, msg, True)
             if descendant:


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