Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 3566)
+++ src/orca/Gecko.py	(working copy)
@@ -7059,6 +7059,8 @@
                      and state.contains(pyatspi.STATE_FOCUSABLE) \
                      and not self.isAriaWidget(previousObj):
                     break
+                elif previousObj.childCount > 1000:
+                    break
 
                 index = previousObj.childCount - 1
                 while index >= 0:
@@ -7111,6 +7113,8 @@
             and obj.getState().contains(pyatspi.STATE_FOCUSABLE) \
             and not self.isAriaWidget(obj):
             descend = False
+        elif obj.childCount > 1000:
+            descend = False
         else:
             descend = True
 
