Index: src/orca/scripts/toolkits/Gecko/script.py
===================================================================
--- src/orca/scripts/toolkits/Gecko/script.py	(revision 4067)
+++ src/orca/scripts/toolkits/Gecko/script.py	(working copy)
@@ -1472,7 +1472,8 @@
                 [obj, characterOffset] = self.getCaretContext()
                 state = obj.getState()
                 if not state.contains(pyatspi.STATE_FOCUSED):
-                    if not state.contains(pyatspi.STATE_FOCUSABLE):
+                    if not state.contains(pyatspi.STATE_FOCUSABLE) \
+                       or not self.inDocumentContent():
                         orca.setLocusOfFocus(event, obj)
                     return
             except:
