Page MenuHomePhabricator

ULS tooltip appears in random place with corner cut off
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Assigned To
Authored By
Krinkle
Apr 24 2025, 2:59 PM
Referenced Files
F60407594: image.png
May 23 2025, 11:49 AM
F60231675: image.png
May 19 2025, 11:57 AM
F59933993: uls-trigger-2025-05-13_clipping
May 13 2025, 12:55 PM
F59933982: uls-trigger-2025-05-13_no-clipping
May 13 2025, 12:55 PM
F59933015: image.png
May 13 2025, 10:13 AM
F59380208: Screenshot 2025-04-24 at 15.57.03.png
Apr 24 2025, 2:59 PM
F59380205: Screenshot 2025-04-24 at 15.53.45.png
Apr 24 2025, 2:59 PM

Description

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

  1. View an article in one language. https://en.wikipedia.org/wiki/IETF_language_tag?safemode=on&uselang=en
  2. View an artilce with another language. https://en.wikipedia.org/wiki/IETF_language_tag?safemode=on&uselang=de

What happens?:

ULS tooltip appears in random place with corner cut off

Other information:

Confimed in safemode (i.e. not due to gadgets, site scripts, or user scripts).

Confirmed in both Firefox and Chrome.

FirefoxChrome
Screenshot 2025-04-24 at 15.53.45.png (1×1 px, 489 KB)
Screenshot 2025-04-24 at 15.57.03.png (1×1 px, 358 KB)

Event Timeline

Nikerabbit subscribed.

Suggesting to have a time-boxed spike to see if this is easily fixable.

Restricted Application changed the subtype of this task from "Bug Report" to "Spike". · View Herald TranscriptMay 12 2025, 7:20 AM

I was able to reproduce this issue locally only when a longer string is displayed in the popup. Enabling toggleClipping on the PopupWidget appears to fix the issue.

image.png (745×1 px, 107 KB)

I can reproduce on Chrome in production but only when devtools is open, not when it is closed. EDIT: It seems to be related how close the cog is to viewport bottom, almost as if there is a fixed margin to it.

Change #1145190 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/UniversalLanguageSelector@master] ULS Undo Tooltip: Enable clipping

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

Clipping disabledClipping enabled
Nikerabbit changed the task status from Open to In Progress.May 19 2025, 6:26 AM
Nikerabbit changed the subtype of this task from "Spike" to "Bug Report".

Change #1145190 merged by jenkins-bot:

[mediawiki/extensions/UniversalLanguageSelector@master] ULS Undo Tooltip: Enable clipping

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

Looks much better:

image.png (1×1 px, 295 KB)

Note that I was only able to reproduce this on legacy vector.

Please note the caveat mentioned in https://phabricator.wikimedia.org/T392600#10816178 This will work well until the window size is too small to display the language.