[orca] Work around for bug #665522 - Flat Review broken in Gecko apps with AT-SPI2



commit 5b464433d3361a9a5e22cada9d9116270c07375e
Author: Mike Gorse <mgorse suse com>
Date:   Mon Dec 5 17:54:18 2011 +0100

    Work around for bug #665522 - Flat Review broken in Gecko apps with AT-SPI2
    
    Quote from the orca-list:
    
    "There's something going wrong with AT-SPI caching children. Either Mozilla
    is sometimes not sending children-changed events when objects are added or
    removed, or libatspi isn't properly updating its cache. I can't say which
    for sure--I haven't taken the time to track it down.
    
    This patch to Orca should help in the meantime."

 src/orca/scripts/toolkits/Gecko/script.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index ae0062f..86ed868 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -279,6 +279,9 @@ class Script(default.Script):
         self.preMouseOverContext = [None, -1]
         self.inMouseOverObject = False
 
+        # See bug 665522 - comment 5
+        app.setCacheMask(pyatspi.cache.ALL ^ pyatspi.cache.CHILDREN)
+
     def activate(self):
         """Called when this script is activated."""
         self.savedEnabledBrailledTextAttributes = \



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