[go: up one dir, main page]

Page MenuHomePhabricator

"Always enable safe mode" gives very narrow message box in preferences
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

Select "Always enable safe mode" at https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering
Save preferences and view the same preference tab again.

What happens?:
The message at https://en.wikipedia.org/wiki/MediaWiki:Prefs-custom-cssjs-safemode is now displayed:

"Custom CSS/JavaScript are currently unavailable as safe mode has been enabled. Please disable safe mode to use custom CSS/JavaScript."

The problem is that the message is in a very narrow box with a single character per line. The vertical length of the box is more than three screens for me. The screenshot is from Vector 2022 and Firefox. The same happens in two other tested browsers, skins, and wikis.

safe mode display bug.png (1×1 px, 36 KB)

What should have happened instead?:

A wide box with the same message should have been displayed.

Event Timeline

Ammarpad subscribed.

Gadgets also shows similar message under Gadgets preference tab and it has the same problem

Change #1085310 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/Gadgets@master] Fix safe mode warning message

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

Change #1085311 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] preferences: Fix safe mode warning message

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

Change #1085311 merged by jenkins-bot:

[mediawiki/core@master] preferences: Fix safe mode warning message

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

Change #1085310 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Fix safe mode warning message

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

Ammarpad claimed this task.