[orca] Ignore busy-changed events from non-document objects which we're not in



commit 458c4649181b91409a2801e881643a20560c8418
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Oct 17 05:44:05 2019 -0400

    Ignore busy-changed events from non-document objects which we're not in

 src/orca/scripts/web/script.py | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index aeb13ee56..a7d907970 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1293,6 +1293,12 @@ class Script(default.Script):
             debug.println(debug.LEVEL_INFO, msg, True)
             return False
 
+        if event.source.getRole() != pyatspi.ROLE_DOCUMENT_WEB \
+           and not self.utilities.isOrDescendsFrom(orca_state.locusOfFocus, event.source):
+            msg = "WEB: Ignoring: Not document and not something we're in"
+            debug.println(debug.LEVEL_INFO, msg, True)
+            return True
+
         self.structuralNavigation.clearCache()
 
         if self.utilities.getDocumentForObject(event.source.parent):


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