[orca] Chromium: Work around missing name-change events from frames



commit e881603fbf64b227eea52d2a670bcb7074bf32eb
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jan 8 16:40:56 2019 -0500

    Chromium: Work around missing name-change events from frames

 src/orca/scripts/toolkits/Chromium/script.py | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script.py b/src/orca/scripts/toolkits/Chromium/script.py
index 632caf75d..192d4f101 100644
--- a/src/orca/scripts/toolkits/Chromium/script.py
+++ b/src/orca/scripts/toolkits/Chromium/script.py
@@ -367,6 +367,13 @@ class Script(web.Script):
 
         if not event.source.name:
             orca_state.activeWindow = event.source
+        else:
+            oldName = event.source.name
+            event.source.clearCache()
+            newName = event.source.name
+            if oldName != newName:
+                msg = "CHROMIUM: NO NAME CHANGE HACK: (name should be: '%s')" % newName
+                debug.println(debug.LEVEL_INFO, msg, True)
 
         # If this is a frame for a popup menu, we don't want to treat
         # it like a proper window:activate event because it's not as


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