Try the caretPositionFromPoint workaround first in the handleMouseClickEvent.

This gives us better result as window.getSeletion() returns stale selection when clicking within already selected text
When browser selection ends within a frame element, move it to the next
walkable position.