[orca] Fix for bug 688057 - A page that hangs orca
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug 688057 - A page that hangs orca
- Date: Sun, 11 Nov 2012 17:17:56 +0000 (UTC)
commit ad130ca6cbbcfe1851ddab97de54ecad007e1b58
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sun Nov 11 12:15:23 2012 -0500
Fix for bug 688057 - A page that hangs orca
Add yet another hack to work around broken hierarchies in Gecko.
In this particular case, when the index in parent is reportedly -1.
src/orca/scripts/toolkits/Gecko/script.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 90b6c0f..12c1e98 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3421,7 +3421,7 @@ class Script(default.Script):
lastChild = documentFrame
while lastChild:
lastObj = self.findNextObject(lastChild, documentFrame)
- if lastObj:
+ if lastObj and lastObj != lastChild:
lastChild = lastObj
else:
break
@@ -4653,7 +4653,7 @@ class Script(default.Script):
# [[[TODO: HACK - WDW Gecko's broken hierarchies make this
# a bit of a challenge.]]]
#
- if not nextObj:
+ if not nextObj and obj.getIndexInParent() != -1:
index = obj.getIndexInParent() + 1
while index < obj.parent.childCount:
child = obj.parent[index]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]