[orca] Work around broken table interface Gecko issue



commit 25fe760fa1e9d21db0bc67ac2f6aa78bb1bbe6e4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Feb 27 18:32:54 2016 -0500

    Work around broken table interface Gecko issue

 src/orca/structural_navigation.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 8fe85c2..ee14b81 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -2747,6 +2747,14 @@ class StructuralNavigation:
                 self._script.presentMessage(caption)
             self._script.presentMessage(self._getTableDescription(obj))
             cell = obj.queryTable().getAccessibleAt(0, 0)
+            if not cell:
+                msg = 'ERROR: Broken table interface for %s' % obj
+                debug.println(debug.LEVEL_INFO, msg)
+                cell = pyatspi.findDescendant(obj, self._tableCellPredicate)
+                if cell:
+                    msg = 'HACK: Located %s for first cell' % cell
+                    debug.println(debug.LEVEL_INFO, msg)
+
             self.lastTableCell = [0, 0]
             self._presentObject(cell, 0)
             [cell, characterOffset] = self._getCaretPosition(cell)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]