[orca] Be sure the caret context is a descendant of the active document
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Be sure the caret context is a descendant of the active document
- Date: Wed, 21 Aug 2019 16:21:12 +0000 (UTC)
commit 36b55d63404dce90f38cc2dabb6045ccb1f7d878
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Aug 21 11:56:17 2019 -0400
Be sure the caret context is a descendant of the active document
The way we currently store the caret context is based on how the Gecko
and WebKitGtk accessibility trees are laid out. This won't work for
Chromium. For now, sanity check the context. Later we can do a specific
solution for Chromium.
src/orca/scripts/web/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c40c861b3..a783c9ea7 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4015,7 +4015,7 @@ class Utilities(script_utilities.Utilities):
return self._getCaretContextViaLocusOfFocus()
context = self._caretContexts.get(hash(documentFrame.parent))
- if not context:
+ if not context or documentFrame != self.getDocumentForObject(context[0]):
obj, offset = self.searchForCaretContext(documentFrame)
elif not getZombieReplicant:
return context
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]