orca r4363 - in branches/gnome-2-24: . src/orca src/orca/scripts/toolkits/Gecko
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4363 - in branches/gnome-2-24: . src/orca src/orca/scripts/toolkits/Gecko
- Date: Sat, 22 Nov 2008 21:36:08 +0000 (UTC)
Author: joanied
Date: Sat Nov 22 21:36:08 2008
New Revision: 4363
URL: http://svn.gnome.org/viewvc/orca?rev=4363&view=rev
Log:
* src/orca/scripts/toolkits/Gecko/script.py:
src/orca/liveregions.py:
src/orca/structural_navigation.py:
Fix for bug #558516 - Traceback when navigating on huge webpages.
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/orca/liveregions.py
branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py
branches/gnome-2-24/src/orca/structural_navigation.py
Modified: branches/gnome-2-24/src/orca/liveregions.py
==============================================================================
--- branches/gnome-2-24/src/orca/liveregions.py (original)
+++ branches/gnome-2-24/src/orca/liveregions.py Sat Nov 22 21:36:08 2008
@@ -562,7 +562,10 @@
else: return 'unknown'
def _getAttrDictionary(self, obj):
- return dict([attr.split(':', 1) for attr in obj.getAttributes()])
+ try:
+ return dict([attr.split(':', 1) for attr in obj.getAttributes()])
+ except:
+ return {}
def _getPath(self, obj):
""" Returns, as a tuple of integers, the path from the given object
Modified: branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py Sat Nov 22 21:36:08 2008
@@ -2571,7 +2571,10 @@
except:
return None
else:
- return ihyperlink.getURI(0)
+ try:
+ return ihyperlink.getURI(0)
+ except:
+ return None
def getDocumentFrameURI(self):
"""Returns the URI of the document frame that is active."""
Modified: branches/gnome-2-24/src/orca/structural_navigation.py
==============================================================================
--- branches/gnome-2-24/src/orca/structural_navigation.py (original)
+++ branches/gnome-2-24/src/orca/structural_navigation.py Sat Nov 22 21:36:08 2008
@@ -1284,11 +1284,7 @@
- obj: the accessible table whose caption we want.
"""
- caption = None
- for child in obj:
- if child and (child.getRole() == pyatspi.ROLE_CAPTION):
- caption = child
-
+ caption = obj.queryTable().caption
try:
caption.queryText()
except:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]