- Type some text which is an invalid title in MW, e.g. "|InvalidTitle"
- Select it and hit link
- Notice that there are no suggestions, and no initial link is applied
- Type in a valid page name, e.g. "Main page" and press Done
- Notice some of your text has been deleted (by and undo operation) before the link was applied
The bug is actually in core AnnotationInspector#getTeardownProcess. We call a surface undo() to remove the initial annotation, but in the case of an invalid title there is no initial annotation.
Version: unspecified
Severity: normal