Index: src/orca/Gecko.py
===================================================================
--- src/orca/Gecko.py	(revision 3494)
+++ src/orca/Gecko.py	(working copy)
@@ -3907,10 +3907,11 @@
         # If this event is the result of our calling grabFocus() on
         # this object in setCaretPosition(), we want to ignore it.
         # See bug #471537.  But we don't want to do this for entries.
-        # See bug #501447.
+        # See bug #501447. Or links.  See bug #511389.
         #
         if self.isSameObject(event.source, self._objectForFocusGrab) \
-           and event.source.getRole() != pyatspi.ROLE_ENTRY:
+           and not event.source.getRole() in [pyatspi.ROLE_ENTRY,
+                                              pyatspi.ROLE_LINK]:
             orca.setLocusOfFocus(event, event.source, False)
             return
             
