[orca] Web: Dump cache if children added and locusOfFocus is dead
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Dump cache if children added and locusOfFocus is dead
- Date: Fri, 26 Feb 2021 12:36:57 +0000 (UTC)
commit 1ae314ab863b3bda3ae0c678032ff623755223c9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Feb 26 13:35:31 2021 +0100
Web: Dump cache if children added and locusOfFocus is dead
src/orca/scripts/web/script.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index d6c0165a8..9d902d8f8 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1732,6 +1732,10 @@ class Script(default.Script):
msg = "WEB: Dumping cache and context: source is focus %s" % orca_state.locusOfFocus
debug.println(debug.LEVEL_INFO, msg, True)
self.utilities.dumpCache(document, preserveContext=False)
+ elif self.utilities.isDead(orca_state.locusOfFocus):
+ msg = "WEB: Dumping cache and context: dead focus %s" % orca_state.locusOfFocus
+ debug.println(debug.LEVEL_INFO, msg, True)
+ self.utilities.dumpCache(document, preserveContext=False)
elif pyatspi.findAncestor(orca_state.locusOfFocus, lambda x: x == event.source):
msg = "WEB: Dumping cache: source is ancestor of focus %s" % orca_state.locusOfFocus
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]