Page MenuHomePhabricator

Off-by-N cursor/text insertion bug in source editor, Vector/Safari, on Mac
Open, Needs TriagePublicBUG REPORT

Description

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

  • In Vector 2022 on Safari, click Edit source on en:Alpha hydroxycarboxylic acid (seems it must include {{chem2}} is all I’ve thought of, but I don’t actually think this is true)
  • Scroll down a bit
  • Click somewhere in the active editing area
  • Attempt to type

What happens?:

  • More often than not: usually the cursor and/or where the text is inserted will differ, OR it will overwrite the text.
  • It has occurred a few times a week for a couple months now, but in what instance I do not specifically recall other than the pages are complicated and/or I was switching between source editing and visual editing.

What should have happened instead?:

  • Normal editing.

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

  • MacOS 14.3.1 Sonoma
  • Safari Version 17.3.1 (19617.2.4.11.12)
  • Desktop mode, logged in

Possibly related to T355625.

Numerous screenshots:

    • Screenshot 2024-03-18 at 18.32.54.png (1×2 px, 1 MB)
      Example 1: Here I’ve indicated with a blue box and arrow: you can see where my cursor should be (grey’d out area), below which my cursor printed an “f”.
  • Screenshot 2024-03-18 at 18.33.01.png (1×2 px, 1 MB)
    Example 2: Step 1: Placed my cursor.
  • Screenshot 2024-03-18 at 18.33.06.png (1×2 px, 1 MB)
    Example 2: Step 2: Pressed the key “1”, you can see '1' was printed above where my cursor was, which is not even properly visible. (Also note the misalignment of the red underline for the Check Spelling, not a part of my complaint but possibly related, possibly a visual bug?)

Event Timeline

Hi. As this was tagged with Vector (legacy skin) , does that imply the problem does not happen in other skins (which ones)? Does this also happen in safe mode?

Hi, the same questions were not asked on T355625. If I tagged it erroneously, I apologise.

@Aklapper How can I ensure this doesn’t become stale?

Jdlrobson-WMF raised the priority of this task from Low to Needs Triage.Apr 24 2025, 3:03 PM
Jdlrobson-WMF added a project: VisualEditor.
Jdlrobson-WMF moved this task from Needs triage to Tracking on the Vector (legacy skin) board.

@Waddie96 Are you still experiencing this? If so, could you try enabling "Improved Syntax Highlighting" in your beta preferences and see if that helps at all?

Hi, first attempt at a bug report, but I also have this issue with MediaWiki 1.44.2 on my personal non-Wikimedia localhost wiki.

Here are the versions of editor extensions installed there.

CodeEditor– (9d057de) 2025-09-24T14:52:20
CodeMirror6.0.0 (a4f2545) 2025-10-08T15:15:18
VisualEditor– (48b40d1) 2025-10-08T04:16:46
WikiEditor0.5.4 (9c6b266) 2025-10-01T14:36:15

Almost forgot an extra screenshot:

image.png (201×759 px, 35 KB)

@A_diehard_editor Are you using CodeMirror 5 or 6? CodeMirror 6 needs to be enabled in LocalSettings.php.

@A_diehard_editor Are you using CodeMirror 5 or 6? CodeMirror 6 needs to be enabled in LocalSettings.php.

Yes, I have $wgCodeMirrorV6 = true; in my config.

And I also git pulled on the REL1.44 branch to commit 8f73fdc417bdd2aad516bf5c3ad00cedcb90ea8e but can't confirm that it's gone yet.

image.png (201×759 px, 35 KB)

Sorry, we cannot see your screenshot which is a restricted file.

image.png (201×759 px, 35 KB)

Sorry, we cannot see your screenshot which is a restricted file.

How do I un-restrict it? I figured it out, I apparently need to go to the file's page, edit the file, and change its privacy settings. Does it work now? (Why does Phabricator make files private by default?)

Does it work now?

Yes :)

(Why does Phabricator make files private by default?)

It's a bug (T310833). For me, uploading using the toolbar button always works, while drag-and-drop may not.

I figured it out, I apparently need to go to the file's page, edit the file, and change its privacy settings. Does it work now? (Why does Phabricator make files private by default?)

Thanks! Could you further provide the link to the problematic page and the steps to reproduce the issue?

I figured it out, I apparently need to go to the file's page, edit the file, and change its privacy settings. Does it work now? (Why does Phabricator make files private by default?)

Thanks! Could you further provide the link to the problematic page and the steps to reproduce the issue?

I'm sorry, but the page in question is on my localhost private MediaWiki installation. If I find a way to reproduce on a public Wikimedia site, I will update.

I'm sorry, but the page in question is on my localhost private MediaWiki installation. If I find a way to reproduce on a public Wikimedia site, I will update.

No problem! In the meantime, I will keep an eye out for any occurrences of similar issues.