Page MenuHomePhabricator

Range error when replacing text containing a ref on android with samsung keyboard
Open, Needs TriagePublic

Description

When using Samsung's keyboard, I selected a section of text which contained a reference and pressed a character on the keyboard.

Expected behaviour: The section of text is replaced, in one step, with the character

Actual behaviour: The section of text is deleted, as well as a chunk of the following text. The character is inserted. Hitting undo once reverts to a state where the paragraph is missing and the character has not been inserted. A second undo restores the initial state.

See also: T411009: Can't delete paragraph ending in a reference on Android, which I was attempting to debug when I found this.

Event Timeline

We were able to reproduce this bug in raw VE using a comment node.

Input HTML:

<h1>abc<!--x-->defg</h1>

<p>pppppppppppppp</p>

We selected the entire H1 content, started filibuster, pressed 6, and then stopped the filibuster. See attached.

ppelberg subscribed.

Next step

  • Editing Engineering to allocate a fixed, and relatively short, amount of time (e.g. a couple of hours) investigating what could be causing this issue.