[orca] Fix a hang that can occur when using structural navigation with Evince forms
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix a hang that can occur when using structural navigation with Evince forms
- Date: Fri, 27 Jun 2014 19:03:47 +0000 (UTC)
commit ac4c4523b1f2cc3d20fc96bdef0a9d548dea4b6d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jun 27 14:59:05 2014 -0400
Fix a hang that can occur when using structural navigation with Evince forms
src/orca/structural_navigation.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 27ba13c..8bd1efc 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -853,11 +853,16 @@ class StructuralNavigation:
# object rather than the current caret offset. See bug 567984.
#
if isNext and self._script.utilities.isSameObject(obj, document):
- pred = self.isAfterDocumentOffset
- if criteria.applyPredicate:
- pred = pred and structuralNavigationObject.predicate
- criteria.applyPredicate = True
- structuralNavigationObject.predicate = pred
+ try:
+ document.queryText()
+ except NotImplementedError:
+ pass
+ else:
+ pred = self.isAfterDocumentOffset
+ if criteria.applyPredicate:
+ pred = pred and structuralNavigationObject.predicate
+ criteria.applyPredicate = True
+ structuralNavigationObject.predicate = pred
rule = collection.createMatchRule(criteria.states.raw(),
criteria.matchStates,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]