[orca] Web: Be sure we have the top-level document when dumping cache
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Be sure we have the top-level document when dumping cache
- Date: Fri, 25 Jun 2021 16:41:51 +0000 (UTC)
commit 5c8ded075b403711167b75243ae6cd8c2897291d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jun 25 18:37:39 2021 +0200
Web: Be sure we have the top-level document when dumping cache
Cached information is associated with the top-level document. The
document associated with the event.source triggering a need to dump
cache might be nested.
src/orca/scripts/web/script.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index a4ce747ca..0d61ac8e6 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1737,7 +1737,7 @@ class Script(default.Script):
return True
isLiveRegion = self.utilities.isLiveRegion(event.source)
- document = self.utilities.getDocumentForObject(event.source)
+ document = self.utilities.getTopLevelDocumentForObject(event.source)
if document and not isLiveRegion:
if event.source == orca_state.locusOfFocus:
msg = "WEB: Dumping cache and context: source is focus %s" % orca_state.locusOfFocus
@@ -1848,7 +1848,7 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return True
- document = self.utilities.getDocumentForObject(event.source)
+ document = self.utilities.getTopLevelDocumentForObject(event.source)
if document:
if event.source == orca_state.locusOfFocus:
msg = "WEB: Dumping cache and context: source is focus %s" % orca_state.locusOfFocus
@@ -2383,7 +2383,7 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
self.utilities.clearContentCache()
- document = self.utilities.getDocumentForObject(event.source)
+ document = self.utilities.getTopLevelDocumentForObject(event.source)
if self.utilities.isDead(orca_state.locusOfFocus):
msg = "WEB: Dumping cache: dead 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]