Last modified: 2014-08-29 18:37:02 UTC
1. Type some text which is an invalid title in MW, e.g. "|InvalidTitle" 2. Select it and hit link - Notice that there are no suggestions, and no initial link is applied 3. 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.
Change 157053 had a related patch set uploaded by Esanders: Only undo if an initial annotation was applied https://gerrit.wikimedia.org/r/157053
Change 157053 merged by jenkins-bot: Only undo if an initial annotation was applied https://gerrit.wikimedia.org/r/157053