[orca] Fix silly mistake in dumpCache and disable preservation by default
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix silly mistake in dumpCache and disable preservation by default
- Date: Tue, 15 Dec 2020 14:07:59 +0000 (UTC)
commit ccc142a6023ac9b4698dc019e7f956ad5a472bea
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Dec 15 15:04:43 2020 +0100
Fix silly mistake in dumpCache and disable preservation by default
src/orca/scripts/web/script_utilities.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index d21d318d8..6061c6dc0 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -127,7 +127,7 @@ class Utilities(script_utilities.Utilities):
for key in toRemove:
self._caretContexts.pop(key, None)
- def dumpCache(self, documentFrame=None, preserveContext=True):
+ def dumpCache(self, documentFrame=None, preserveContext=False):
if not documentFrame or self.isZombie(documentFrame):
documentFrame = self.documentFrame()
@@ -143,7 +143,7 @@ class Utilities(script_utilities.Utilities):
if preserveContext and context:
msg = "WEB: Preserving context of %s, %i" % (context[0], context[1])
debug.println(debug.LEVEL_INFO, msg, True)
- self._caretContexts[documentFrame.parent] = context
+ self._caretContexts[hash(documentFrame.parent)] = context
def clearCachedObjects(self):
debug.println(debug.LEVEL_INFO, "WEB: cleaning up cached objects", True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]