https://bugzilla.wikimedia.org/show_bug.cgi?id=42278
Web browser: ---
Bug #: 42278
Summary: VisualEditor: After clicking out of link inspector,
pressing enter removes wrong text
Product: VisualEditor
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: User Interface
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
1. Type the text "Foo bar baz"
2. Select "bar"
3. Click the link toolbar button
4. Click between the a and the z ("ba|z") to cause the inspector to close
5. Press enter
Expected result: paragraph is split with "z" in a new paragraph
Actual result: "bar" is removed, paragraph is split with "baz" in a new
paragraph
Occurs in both Firefox and Chrome. Isn't reproducible 100% of the time.
Theory:
1. User changes selection to ba|z
2. SurfaceObserver notices and adjusts its selection
3. Link inspector notices and triggers annotation on a fragment with a
different range (the link)
4. Some bug in SurfaceObserver or SurfaceFragment causes SO to believe the
current selection is now the link
5. User presses enter, SO removes what it believes is the selection
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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