Page MenuHomePhabricator

Mobile Web block messages no longer displaying templates
Closed, ResolvedPublicBUG REPORT

Description

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

  • Use a blocked IP (most VPNs will work)
  • Attempt to edit a page on Wikipedia using mobile web

What happens?:

IMG_1753.PNG (2×1 px, 1 MB)

Reason
{{CDNblock}} <!-- Akamai; switching to CDNblock template since this range has private relay nodes on it -->

What should have happened instead?:

The block template should be displayed, as implemented in T189717/T261944

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

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

Probably related to work on T387119: Block messages don't appear correctly on mobile

Event Timeline

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

I am responsible for a fair number of these blocks on enwiki. I frequently get emails these days from furious users about being blocked for no reason. This is troubling to me because for every user who emails about this, there are probably many users who didn't email about it and instead, fed up, just decided not to edit.

The block messages transcluded in templates are somewhat carefully crafted and convey important information (see e.g. {{CDNblock}}, {{colocationwebhost}}). This is important because *many* editors are blocked behind services like iCloud Private Relay (see e.g. T293849), and if they are seeing an inscrutable block reason they are likely to give up editing. If this is happening on all mobile web editing, this seems like a very high priority to resolve. (One user emailed me directly to say: "I didn’t understand the reason given for the ban..it was just a bunch of parentheses and stuff".)

If it is impossible to transclude the messages properly, one possible alternative is to allow communities to specify, like, alt-text in the templates that could be displayed in lieu of the full template graphics. This is subpar, but would be *much* better than the status quo.

Change #1141030 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[mediawiki/extensions/MobileFrontend@master] editor: Fix rendering formatted block reason in overlay

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

mszabo changed the task status from Open to In Progress.May 3 2025, 9:35 AM
mszabo claimed this task.
mszabo triaged this task as High priority.

Change #1141030 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] editor: Fix rendering formatted block reason in overlay

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

kostajh subscribed.

@AntiCompositeNumber @L235 thank you for the report and our apologies for the regression. The fix (with a regression test) will go out in next week's train.

My sincere thanks to everyone for the swift action here!

Djackson-ctr subscribed.

QA is completed, I have verified the new code has been implemented and is functioning as expected (Block Message Details have been returned to their previous state).

image.png (850×396 px, 47 KB)
image.png (906×518 px, 220 KB)

@L235 @AntiCompositeNumber this should be fixed once wmf.28 reaches group2. Just wanted to note that if there are multiple blocks affecting an IP (e.g. a local wiki block targeting an IP and a global block with the same IP), only a generic message stating that there are multiple blocks involved is shown. (cc @MusikAnimal and Multiblocks)