Page MenuHomePhabricator

Mouse selecting and cutting the last reference of a group of 3 references cuts 2 references instead of 1
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Create a page with the following wikitext
.<ref>{{Cite web|last=S'inscrire|date=2020-02-27|title=Equipe de France U17 - Danemark U17, le résumé vidéo|url=http://www.actufoot.com/national/equipe-de-france-u17-danemark-u17-resume-video|access-date=2020-10-23|website=Actufoot|language=fr-FR}}</ref><ref>{{Cite web|last=S'inscrire|date=2020-02-25|title=🎥 U17 : France - Danemark, le résumé vidéo|url=http://www.actufoot.com/67/u17-france-danemark-resume-video|access-date=2020-10-23|website=Actufoot|language=fr-FR}}</ref><ref>{{Cite web|title=Ugen der gik (9/2020)|url=https://www.fck.dk/nyhed/ugen-der-gik-92020|access-date=2020-10-23|website=F.C. København|language=da}}</ref>
  • Select reference number 3 by holding down left click and dragging your cursor from right to left. Do not click directly on reference 3. Do not use keyboard shortcut Shift+LeftArrow.
  • Cut

What happens?:

  • References 2 and 3 are cut

What should have happened instead?:

  • Only reference 3 should be cut

Software version (skip for WMF-hosted wikis like Wikipedia):

  • Google Chrome, Windows 10

Other information (browser name/version, screenshots, etc.):

Animated gif (click to play):

visual editor 2 citation cut bug.gif (739×1 px, 491 KB)

Event Timeline

ppelberg added a project: Editing-team.
ppelberg moved this task from Untriaged to Upcoming on the Editing-team board.
ppelberg subscribed.

Next step(s)

  • Editing Engineering to investigate what might be causing this issue and the work that would be involved with fixing it.

Change 883190 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[VisualEditor/VisualEditor@master] Try to prevent selections inside ref/template nodes on Firefox

https://gerrit.wikimedia.org/r/883190

Change 883190 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Try to prevent selections inside ref/template nodes on Firefox

https://gerrit.wikimedia.org/r/883190

Change 887326 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (109c9a606)

https://gerrit.wikimedia.org/r/887326

Change 887326 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (109c9a606)

https://gerrit.wikimedia.org/r/887326

matmarex moved this task from Code Review to QA on the Editing-team (Kanban Board) board.
matmarex added a project: Editing QA.

The change may not completely fix the issue, and there may be other issues related to text cursor movement near focusable nodes. If you have some time, it'd be nice to explore around a little bit and report what you find, in different browsers as well. Issues in T272207, T313162 and T327086 are all probably related.

matmarex removed a project: Editing QA.

Changes were reverted due to causing T329983 and T330104.

matmarex subscribed.