Page MenuHomePhabricator

Special:RecentChanges uses Codex markup without appropriate style pack
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

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

What happens?:

  • A Codex message box appears at the top of the page
  • A warning message is sent to logstash (code,

Screenshot 2024-12-09 at 1.11.37 PM.png (2,700×472 px, 76 KB)

What should have happened instead?:

  • Please add the mediawiki.codex.messagebox.styles module to the page explicitly.

Event Timeline

@Jdlrobson I do not see this issue with Special:RecentChanges, but I do see it with Special:ChangeEmail. Could you please clarify?

Change #1108457 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Mobile recent changes should load message box style pack

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

Jdlrobson triaged this task as Medium priority.Jan 7 2025, 12:34 AM
Jdlrobson moved this task from Backlog to Tech debt on the MinervaNeue board.
Samwalton9-WMF set the point value for this task to 3.
Samwalton9-WMF moved this task from Estimated to Kanban on the Moderator-Tools-Team board.
• Scardenasmolinar changed the task status from Open to In Progress.Jan 7 2025, 7:41 PM
• Scardenasmolinar claimed this task.

Looking more closely at logstash it looks like this is limited to the mobile site:
https://en.m.wikipedia.org//wiki/Special:RecentChanges?days=30&enhanced=1&hideWikibase=1&hidebots=1&hidecategorization=1&limit=500&urlversion=2

Screenshot 2025-01-06 at 9.36.14 AM.png (2,112×320 px, 58 KB)

Fix can be confirmed using https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1098184 - mobile message box shows unstyled when applied.

I tested this core patch locally, and I'm still seeing css applied:

image.png (528×716 px, 44 KB)

I was not able to find log entry for this error for Special:RecentChanges in logstash, though maybe I'm missing something with my search since this came from a mobile page?

Your minerva patch looks like exactly the right fix for the reported issue, but I just haven't been able to reproduce it.

Disable JavaScript. The style pack is likely being loaded by JS!

Disable JavaScript. The style pack is likely being loaded by JS!

that did the trick; thanks!

updating assignee to reflect the patch author :-)

Change #1108457 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Mobile recent changes should load message box style pack

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

Thanks @jsn.sherman for helping me get this resolved!