[orca/gnome-3-10] And sanity check to prevent a hang when using Firefox
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-10] And sanity check to prevent a hang when using Firefox
- Date: Wed, 20 Nov 2013 14:37:08 +0000 (UTC)
commit cbc7c82f3c46d8ad9e5fda18dfad882b4efc64da
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 20 09:35:52 2013 -0500
And sanity check to prevent a hang when using Firefox
src/orca/scripts/toolkits/Gecko/script.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 62cba62..2695cca 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3862,6 +3862,10 @@ class Script(default.Script):
and extents != prevExtents \
and lastExtents != prevExtents:
toAdd = self.utilities.getObjectsFromEOCs(prevObj, pOffset, boundary)
+ toAdd = [x for x in toAdd if x not in objects]
+ if not toAdd:
+ break
+
# Depending on the line, there's a chance that we got our
# current object as part of toAdd. Check for dupes and just
# add up to the current object if we find them.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]