Page MenuHomePhabricator

With Syntax Highlighting enabled, entered characters get mixed up (Firefox 140 in Debian stable trixie)
Closed, InvalidPublicBUG REPORT

Description

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

  1. Use Mozilla Firefox (I tested version 140 ESR on Debian 13 stable)
  2. Open the WikiEditor in a page like https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit
  3. Make sure to use Syntax Highlighting
    • it's the pencil icon in the top-toolbar of the editor
  4. Write something long, quickly, like "hello hello hello"

What happens?:

You type "hello hello hello" but you get rubbish like "helloh elol ehlol"

What should have happened instead?:

You type "hello hello hello" and you get "hello hello hello".

Workarounds

  • disable the Syntax Highlighting
  • or, use Chromium (version 142 on Debian GNU/Linux stable trixie, works)
  • or, use Konqueror (4:25.04.0-1 on Debian GNU/Linux stable trixie, works)
  • or, use Firefox 145 on Fedora

Screenshots

Note the green paragraph (what I really typed, when Syntax Highlighting was disabled)

Note the red part (what I got when typing a similar thing with Syntax Highlighting enabled.

What I TypedWhat I Got (with Syntax Highlighting on)
scritta🫠 csritta
il tastino🫠 lit satino
evidenziato🫠 eviednziat
wikitesto🫠 wikteisto

WikiEditor bug syntax highliting in Firefox 140 - 2025-11-22.png (795×1 px, 303 KB)

Event Timeline

valerio.bozzolan renamed this task from Syntax Highliting makes editor unusable (at least in Mozilla Firefox 140 in Debian stable trixie) to Syntax Highlighting makes editor unusable (at least in Mozilla Firefox 140 in Debian stable trixie).Nov 22 2025, 5:54 PM
valerio.bozzolan updated the task description. (Show Details)

Sorry, fixed typos about Highlighting.

Aklapper renamed this task from Syntax Highlighting makes editor unusable (at least in Mozilla Firefox 140 in Debian stable trixie) to With Syntax Highlighting enabled, entered characters get mixed up (Firefox 140 in Debian stable trixie).Nov 22 2025, 6:40 PM
Aklapper changed the task status from Open to Stalled.

Cannot reproduce using Firefox 145 on Fedora. Does this also happen with other browsers? Does this also happen using safe mode via https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&safemode=1 ?

Yes.

Does this also happen with other browsers?

No. Cannot reproduce in Konqueror 4:25.04.0-1.

I guess the Debian stable version of Firefox ESR is borked, then...

MusikAnimal subscribed.

Based on the screenshot this is the old version of CodeMirror. You could try seeing if it works in the new version by going to your beta preferences and enabling "Improved Syntax Highlighting".

CodeMirror 5 has officially been retired, thus closing as invalid. Please file a new bug should the issue persist with the new version.