Page MenuHomePhabricator

Pasting content sometimes scrambles it
Open, Needs TriagePublic

Description

Sometimes, when you paste from the visual editor in one window to the visual editor in another, words get jumbled into a bunch of gibberish.

Example:
"Prior to this ban, there were debates" was changed to "T Prior to teis ban, thre hweredebates"
https://en.wikipedia.org/w/index.php?title=Prospect_Park_(Brooklyn)&diff=846763975&oldid=846446246

Reported by @Epicgenius at https://www.mediawiki.org/wiki/Topic:Ufujo8is07ouclhe

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Going to be hard to investigate without a repeatable test case...

Important to note is that in the visual editor everything looks fine, it is only on clicking "save" that the result is garbled.
Doesn't that really narrow down the spot where the bug could be?
I am noticing this bug (very rarely) on a private mediawiki instance (version 1.31 + visual editor + parsoid but no restbase) while typing (so not only copy paste) everything looks fine, but on save it is scrambled.