[orca] Eliminate duplicate presentation of content in presentObject



commit a2db770fe9663b44aed990a332564de849ed9724
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Oct 28 19:01:55 2019 -0400

    Eliminate duplicate presentation of content in presentObject

 src/orca/scripts/web/script.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 1b023a1af..2d0ef576e 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -895,8 +895,12 @@ class Script(default.Script):
             self.updateBraille(obj)
             return
 
+        # We shouldn't use cache in this method, because if the last thing we presented
+        # included this object and offset (e.g. a Say All or Mouse Review), we're in
+        # danger of presented irrelevant context.
+        useCache = False
         offset = args.get("offset", 0)
-        contents = self.utilities.getObjectContentsAtOffset(obj, offset)
+        contents = self.utilities.getObjectContentsAtOffset(obj, offset, useCache)
         self.displayContents(contents)
         self.speakContents(contents, **args)
  


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