Page MenuHomePhabricator

VisualEditor: I can't select multiple refs when going backwards from the keyboard in Firefox
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Open a page in Firefox (v. 32.0.3 on Mac 10.8.5) that contains several refs in a row: [1][2][3][4].
  1. Decide that refs 1, 2, and 3 are inappropriate. Place cursor between refs 3 and 4.
  1. Press shift + back arrow to start selecting the refs.

Results:

Press shift + left arrow once: [3] is highlighted. Press it again (i.e., to extend the selection to include [2]): [3] is no longer highlighted. Press it again: [3] is highlighted again.

Repeat cycle of select-deselect as long as you would like.

Workaround:

Place cursor before ref [1], and select the three refs by pressing shift + forward arrow.

I cannot reproduce this in Safari 6.1.2. I haven't tested it in a LTR (left-to-right) language.


Version: unspecified
Severity: minor

Details

Reference
bz72835

Event Timeline

Confirmed in FF test2: cannot select a group of reference with Shift+left arrow(highlighting nackward) - NS_ERROR_FAILURE is displayed.

This is perfectly functioning in Chrome - a group of references can be selected with Shift+right arrow and back wards.

Change 170697 had a related patch set uploaded by Esanders:
Catch backwards selection error in Firefox

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

Change 170697 merged by jenkins-bot:
Catch backwards selection error in Firefox

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

The fix is confirmed in test2 and betalabs.

Verified the fix in production(in FF) - backward selection(highlighting) works smoothly and no js errors are displayed.