[orca] Don't clear the oldFocus even if it's a Zombie when locusOfFocus changes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't clear the oldFocus even if it's a Zombie when locusOfFocus changes
- Date: Thu, 2 Nov 2017 18:10:32 +0000 (UTC)
commit cea0b75de3427523a73d992a0a13cf42ff189355
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Nov 2 14:08:15 2017 -0400
Don't clear the oldFocus even if it's a Zombie when locusOfFocus changes
This attempt to work around objects going defunct can cause us to
incorrectly update our location.
src/orca/scripts/web/script.py | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index f0e6839..0b1ca2b 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1092,11 +1092,6 @@ class Script(default.Script):
debug.println(debug.LEVEL_INFO, msg, True)
return False
- if oldFocus and self.utilities.isZombie(oldFocus):
- msg = "WEB: Old focus is Zombie: %s. Clearing oldFocus." % oldFocus
- debug.println(debug.LEVEL_INFO, msg, True)
- oldFocus = None
-
caretOffset = 0
if not oldFocus or self.utilities.inFindToolbar(oldFocus):
contextObj, contextOffset = self.utilities.getCaretContext()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]