https://bugzilla.wikimedia.org/show_bug.cgi?id=70167

            Bug ID: 70167
           Summary: VisualEditor: Applying a link to an invalid title
                    triggers an undo
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: MediaWiki integration
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to