Index: src/orca/scripts/toolkits/Gecko/script.py
===================================================================
--- src/orca/scripts/toolkits/Gecko/script.py	(revision 4318)
+++ src/orca/scripts/toolkits/Gecko/script.py	(working copy)
@@ -5576,7 +5576,9 @@
         [prevObj, prevOffset] = \
             self.findPreviousCaretInOrder(currentLine[0][0], currentLine[0][1])
 
-        extents = self.getExtents(obj, characterOffset, characterOffset + 1)
+        extents = self.getExtents(currentLine[0][0],
+                                  currentLine[0][1],
+                                  currentLine[0][2])
         prevExtents = self.getExtents(prevObj, prevOffset, prevOffset + 1)
         while self.onSameLine(extents, prevExtents) \
               and (extents != prevExtents):
@@ -5672,7 +5674,9 @@
             self.findNextCaretInOrder(currentLine[-1][0],
                                       currentLine[-1][2] - 1)
 
-        extents = self.getExtents(obj, characterOffset, characterOffset + 1)
+        extents = self.getExtents(currentLine[-1][0],
+                                  currentLine[-1][1],
+                                  currentLine[-1][2])
         nextExtents = self.getExtents(nextObj, nextOffset, nextOffset + 1)
         while self.onSameLine(extents, nextExtents) \
               and (extents != nextExtents):
