Steps to reproduce: Take a page with a single paragraph of English text. Click just after the last character of the paragraph. Type some text in Malayalam. Close the input method by selecting an input option.
Symptom: The cursor moves one grapheme cluster back, i.e. one position before the end of the text you've just typed.
This doesn't happen in Firefox.