[orca] Re-commit "Be sure we have the active document in descendantAtPoint"
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Re-commit "Be sure we have the active document in descendantAtPoint"
- Date: Thu, 21 Nov 2019 13:51:42 +0000 (UTC)
commit 229572dd6d34e1bae0e3a857a3ddb2d909434110
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Nov 21 08:49:48 2019 -0500
Re-commit "Be sure we have the active document in descendantAtPoint"
This change should still be valid even without the tree dive that was
reverted.
src/orca/scripts/web/script_utilities.py | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index bce0d639e..ae0eadd10 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4584,6 +4584,13 @@ class Utilities(script_utilities.Utilities):
if not (root and self.inDocumentContent(root)):
return super().descendantAtPoint(root, x, y, coordType)
+ if self.isDocument(root):
+ active = self.activeDocument()
+ if active and root != active:
+ msg = "WEB: %s is not active. Updating to %s." % (root, active)
+ debug.println(debug.LEVEL_INFO, msg, True)
+ root = active
+
if self.containsPoint(root, x, y, coordType):
return super().descendantAtPoint(root, x, y, coordType)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]