Page MenuHomePhabricator

Unclosed #contentSub tag causes pages to be rendered incorrectly
Closed, ResolvedPublicBUG REPORT

Description

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

Screenshot of the DOM tree:

image.png (402×1 px, 62 KB)

What happens?:
This causes the entire page content to be smaller.

For the main page, it caused it to not render at all due to a rule for hiding #contentSub. First reported on Russian Wikipedia forum: https://ru.wikipedia.org/wiki/Википедия:Форум/Общий#Заглавная_страница

Screenshot of the page footer with the bug present:

image.png (940×1 px, 256 KB)

What should have happened instead?:
#contentSub should be properly closed. This might be related to some recent changes in FlaggedRevs extension (in T191156: Convert FlaggedRevisions to Codex). It should be fixed ASAP given that this probably would be affecting more and more pages for anonymous users.

Currently I deployed a hotfix for Main Page use case: https://ru.wikipedia.org/?diff=139486499

Event Timeline

Restricted Application added a subscriber: Base. · View Herald TranscriptAug 8 2024, 1:02 PM
stjn triaged this task as Unbreak Now! priority.Aug 8 2024, 1:04 PM

Given that this visual bug already caused the main page to not show and causes problems on all pages, raising priority.

stjn updated the task description. (Show Details)

@Dogu @Ladsgroup since people are reporting this also being the case in enWP on FlaggedRevs-enabled pages, tagging you both here for quicker response:

Example: https://en.wikipedia.org/wiki/Martine_Croxall

DOM tree screenshot:

image.png (389×1 px, 58 KB)

Change #1060835 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/FlaggedRevs@master] Add missing close tags to #contentSub message

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

Change #1060839 had a related patch set uploaded (by Ladsgroup; author: Bartosz Dziewoński):

[mediawiki/extensions/FlaggedRevs@wmf/1.43.0-wmf.17] Add missing close tags to #contentSub message

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

Change #1060839 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@wmf/1.43.0-wmf.17] Add missing close tags to #contentSub message

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

Mentioned in SAL (#wikimedia-operations) [2024-08-08T13:59:29Z] <ladsgroup@deploy1003> Started scap sync-world: Backport for [[gerrit:1060839|Add missing close tags to #contentSub message (T372054)]]

Change #1060835 merged by jenkins-bot:

[mediawiki/extensions/FlaggedRevs@master] Add missing close tags to #contentSub message

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

Mentioned in SAL (#wikimedia-operations) [2024-08-08T14:02:56Z] <ladsgroup@deploy1003> ladsgroup: Backport for [[gerrit:1060839|Add missing close tags to #contentSub message (T372054)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)