[orca] And sanity check to prevent a hang when using Firefox



commit d7148abff628d582e9d172e60dde003744656c2f
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 6d700c4..caf9bcd 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -3477,6 +3477,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]