Page MenuHomePhabricator

CharInsert broken in Chrome: Text not inserted at cursor position; spans over multiple lines
Closed, DuplicatePublic

Description

Inserting tags with the insertTags funcition (toolbar.js) behaves oddly in Chrome atm.

The text is not insertet at the cursor position, but a the end of some row above.
The selection is also wrong and usually spans over multiple (non-selected) rows.

Occurs directly when editing, but after a while it works.

See vid:

Chrome 58.0.3029.81 (64-bit) on Win 8.1 and OSX
MW 1.25 and on MW.org

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 30 2017, 11:25 AM
Subfader updated the task description. (Show Details)Apr 30 2017, 11:26 AM
Subfader renamed this task from CharInsert is broken to CharInsert is broken in current Chrome.Apr 30 2017, 12:04 PM
Subfader updated the task description. (Show Details)
Aklapper renamed this task from CharInsert is broken in current Chrome to CharInsert broken in Chrome: Text not inserted at cursor position; spans over multiple lines.Apr 30 2017, 5:33 PM

Also please provide information on which exact site this problem happens.

Aklapper changed the task status from Open to Stalled.Apr 30 2017, 6:16 PM

Yes and every page.

Again: Please provide information on which exact site this problem happens. If "every" then provide at least one exact site please, always.

Still. Chrome 58.0.3029.96 (64-bit)

Still cannot reproduce.

Subfader added a comment.EditedMay 13 2017, 9:03 AM

Reproduce:

It's not enetered at the row where your cursor was, but somewhere above.
If not, try again please.

I can reproduce it on Windows and OSX on 4 different machines, even with disabled addons.

Does it also happen when you the safemode=1 URL parameter (or when you are logged out)?

Subfader added a comment.EditedMay 23 2017, 8:38 PM

MW Sandbox:

  • logged in: yes
  • logged in & safemode=1: yes
  • logged out: yes
  • logged out & safemode=1: yes

Reproducable for me now everytime with: Enter mutiple empty rows (return) > click the translate button > Text is added where your cursor was before you hit return.

MW 1.25:

  • logged in: yes
  • logged in & safemode=1: yes
  • logged out: editing disabled

On my own wiki I have this everytime with buttons that add multi-row text (e.g. an empty table).

Fixed with Chrome 59.0.3071.86