Page MenuHomePhabricator

[regression,subtask] page preview doesn't display when mouse hovers over wikilinked text that has italic and / or span (and perhaps other html) markup
Closed, ResolvedPublicBUG REPORT

Description

What happens?: The template {{USS|Will Rogers|SSBN-659}} creates this wiki-markup:

  • [[USS&#32;Will Rogers&#32;(SSBN-659)|USS&nbsp;''Will Rogers''&nbsp;<span class="nowrap">(SSBN-659)</span>]]

Media wiki translates that to this html markup:

  • <a href="/wiki/USS_Will_Rogers_(SSBN-659)" title="USS Will Rogers (SSBN-659)">USS&#160;<i>Will Rogers</i>&#160;<span class="nowrap">(SSBN-659)</span></a>

At en.wiki using desktop display, hovering the mouse pointer over 'USS' in the rendered link produces a page preview. Hovering the mouse pointer over 'Will Rogers' produces a simple tooltip. Hovering the mouse pointer over '(SSBN-659)' produces a simple tooltip. Hovering the mouse pointer over the whitespace between 'Will Rogers' and '(SSBN-659)' produces a page preview.

What should have happened instead?: Page previews should provide a page-preview tooltip regardless of where on the rendered wikilink the mouse pointer hovers
Other information (browser name/version, screenshots, etc.): For me, win 10 chrome current version; reported to be the same for win 10 firefox. Initially discussed at en:WP:VPT

QA steps

In beta cluster, hovering over the italized portion of the link should trigger a preview:
https://en.wikipedia.beta.wmflabs.org/wiki/User:Jdlrobson/T325007

In production hover over the italic portion of this link:
https://en.wikipedia.org/wiki/User:Jdlrobson/T325007

Exploratory testing is important as part of this task. Are there any links not generating a preview that should be?

QA Results - Beta

ACStatusDetails
1T325007#8464113

QA Results - Prod

ACStatusDetails
1T325007#8468184

Event Timeline

@ovasileva seems like a regression caused by T233099 unfortunately :-(

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

[mediawiki/extensions/Popups@master] Child elements also trigger previews

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

ovasileva triaged this task as Unbreak Now! priority.Dec 12 2022, 10:23 PM
Jdlrobson renamed this task from page preview doesn't display when mouse hovers over wikilinked text that has italic and / or span (and perhaps other html) markup to [regression,subtask] page preview doesn't display when mouse hovers over wikilinked text that has italic and / or span (and perhaps other html) markup .Dec 12 2022, 10:45 PM

Change 867271 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Child elements also trigger previews

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

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

[mediawiki/extensions/Popups@wmf/1.40.0-wmf.13] Child elements also trigger previews

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

@ovasileva this should ride this week's train. We should probably backport it before then, ideally after doing some QA.
I can't backport it tomorrow due to a meeting conflict. Feel free to get someone else to do that.
If not I can probably backport this on Wednesday. Please let me know how you want us to proceed!

ovasileva added subscribers: Jdrewniak, Edtadros.

@Jdrewniak will backport later today. Moving to doing.

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Ventura
Browser: Chrome, Safari, Edge, Firefox, Opera
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: In beta cluster, hovering over the italicized portion of the link should trigger a preview:
https://en.wikipedia.beta.wmflabs.org/wiki/User:Jdlrobson/T325007

Screenshot 2022-12-13 at 9.16.05 AM.png (655×1 px, 128 KB)

Change 867233 merged by jenkins-bot:

[mediawiki/extensions/Popups@wmf/1.40.0-wmf.13] Child elements also trigger previews

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

Mentioned in SAL (#wikimedia-operations) [2022-12-13T21:08:06Z] <samtar@deploy1002> Started scap: Backport for [[gerrit:867233|Child elements also trigger previews (T325007)]]

Mentioned in SAL (#wikimedia-operations) [2022-12-13T21:09:53Z] <samtar@deploy1002> samtar and jdlrobson: Backport for [[gerrit:867233|Child elements also trigger previews (T325007)]] synced to the testservers: mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug1001.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2022-12-13T21:17:44Z] <samtar@deploy1002> Finished scap: Backport for [[gerrit:867233|Child elements also trigger previews (T325007)]] (duration: 09m 38s)

Jdlrobson lowered the priority of this task from Unbreak Now! to High.

The fix for this is now in production. Thanks @Jdrewniak

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Ventura
Browser: Chrome, Safari, Edge, Firefox, Opera
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: In enwiki, hovering over the italicized portion of the link should trigger a preview:
https://en.wikipedia.org/wiki/User:Jdlrobson/T325007

Screen Recording 2022-12-13 at 3.13.30 PM.mov.gif (794×1 px, 491 KB)