[orca/gnome-3-14] Work around yet another case of Gecko killing newly-focused accessible objects
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Work around yet another case of Gecko killing newly-focused accessible objects
- Date: Thu, 5 Mar 2015 01:28:56 +0000 (UTC)
commit 38047aabbd526a8d1c7cd323679fe062b438941c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Mar 4 20:08:08 2015 -0500
Work around yet another case of Gecko killing newly-focused accessible objects
src/orca/scripts/toolkits/Gecko/script.py | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 17f53c1..2b8e69b 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -867,6 +867,11 @@ class Script(default.Script):
def onCaretMoved(self, event):
"""Callback for object:text-caret-moved accessibility events."""
+ if self.utilities.isZombie(event.source):
+ msg = "ERROR: Event source is Zombie"
+ debug.println(debug.LEVEL_INFO, msg)
+ return
+
if not self.inDocumentContent(event.source):
default.Script.onCaretMoved(self, event)
return
@@ -986,6 +991,11 @@ class Script(default.Script):
and self.inDocumentContent(event.source):
return
+ if self.utilities.isZombie(event.source):
+ msg = "ERROR: Event source is Zombie"
+ debug.println(debug.LEVEL_INFO, msg)
+ return True
+
text = self.utilities.queryNonEmptyText(event.source)
char, start, end = text.getTextAtOffset(text.caretOffset, pyatspi.TEXT_BOUNDARY_CHAR)
if char == self.EMBEDDED_OBJECT_CHARACTER:
@@ -1224,6 +1234,11 @@ class Script(default.Script):
if not event.detail1:
return
+ if self.utilities.isZombie(event.source):
+ msg = "ERROR: Event source is Zombie"
+ debug.println(debug.LEVEL_INFO, msg)
+ return
+
if not _settingsManager.getSetting('caretNavigationEnabled'):
default.Script.onFocusedChanged(self, event)
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]