Try the caretPositionFromPoint workaround first in the handleMouseClickEvent. This gives us better results in most cases.
When browser selection ends within a frame element, move it to the next
walkable position.