[orca] Don't clear the cache of windows by default
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't clear the cache of windows by default
- Date: Wed, 21 Nov 2018 02:00:48 +0000 (UTC)
commit 4742b720a9ac187b4e8606cf1c85dc370e3321d0
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Nov 20 20:59:11 2018 -0500
Don't clear the cache of windows by default
Clearing the cache of windows is a sad hackaround for bugs in other apps.
It makes us less performant. We need to fix the other apps, or only hack
around those where we have recent evidence it is still needed.
src/orca/script_utilities.py | 2 +-
src/orca/scripts/toolkits/Chromium/script_utilities.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 1f36608d0..76283bc34 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -136,7 +136,7 @@ class Utilities:
return cmdline.replace("\x00", " ")
- def canBeActiveWindow(self, window, clearCache=True):
+ def canBeActiveWindow(self, window, clearCache=False):
if not window:
return False
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 2220b7a1a..cf7446ae6 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -124,7 +124,7 @@ class Utilities(web.Utilities):
child = pyatspi.findDescendant(frame, lambda x: x and x.getRole() in roles)
return child and not self.inDocumentContent(child)
- def canBeActiveWindow(self, window, clearCache=True):
+ def canBeActiveWindow(self, window, clearCache=False):
if super().canBeActiveWindow(window, clearCache):
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]