Created attachment 39555 [details] caretRangeFromPointWithScroll.html document.caretRangeFromPoint() might return a null range which should not. Please see attached file caretRangeFromPointWithScroll.html for detailed explanation. The problem probably is at: IntPoint point = roundedIntPoint(FloatPoint(x * zoomFactor, y * zoomFactor)) + view()->scrollOffset(); if (!frameView->boundsRect().contains(point)) return 0; Which should be: IntPoint point = roundedIntPoint(FloatPoint(x * zoomFactor, y * zoomFactor)); if (!frameView->boundsRect().contains(point)) return 0; point += view()->scrollOffset(); // Then, hit test.
Is this a dup of bug 29245?
*** This bug has been marked as a duplicate of bug 29245 ***