[orca] Be more aggressive filtering out load events from SeaMonkey's mail client



commit 870f2feea2d5cd34444c3543425a0bde19b59c70
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Dec 22 09:03:13 2016 -0500

    Be more aggressive filtering out load events from SeaMonkey's mail client

 src/orca/scripts/apps/SeaMonkey/script.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/orca/scripts/apps/SeaMonkey/script.py b/src/orca/scripts/apps/SeaMonkey/script.py
index e0f69a2..7d6ea8d 100644
--- a/src/orca/scripts/apps/SeaMonkey/script.py
+++ b/src/orca/scripts/apps/SeaMonkey/script.py
@@ -42,16 +42,11 @@ class Script(Gecko.Script):
     def onBusyChanged(self, event):
         """Callback for object:state-changed:busy accessibility events."""
 
-        try:
-            focusRole = orca_state.locusOfFocus.getRole()
-        except:
-            msg = "ERROR: Exception getting role for %s" % orca_state.locusOfFocus
+        table = self.utilities.getTable(orca_state.locusOfFocus)
+        if table and not self.utilities.isTextDocumentTable(table):
+            msg = "SEAMONKEY: Ignoring, locusOfFocus is %s" % orca_state.locusOfFocus
             debug.println(debug.LEVEL_INFO, msg, True)
-        else:
-            if focusRole == pyatspi.ROLE_TABLE_ROW:
-                msg = "SEAMONKEY: Ignoring, locusOfFocus is %s" % orca_state.locusOfFocus
-                debug.println(debug.LEVEL_INFO, msg, True)
-                return
+            return
 
         super().onBusyChanged(event)
 


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