Page MenuHomePhabricator

Add fallback for “Only resize when resizeUrl actually exists” bug
Closed, DuplicatePublic2 Estimated Story PointsBUG REPORT

Description

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

What happens?:

Share highlight card not rendering

errorLogger.js:19 TypeError: parsedUrl.resizeUrl is not a function
    at getImageSrc (ShareQuoteDialog.vue:104:22)
    at tV.eval [as fn] (ShareQuoteDialog.vue:117:13)
    at eR (vue.js:5:8449)
    at get value (vue.js:5:19431)
    at ek.l [as fn] (vue.js:5:55236)
    at ek.run (vue.js:5:6967)
    at k (vue.js:5:55721)
    at vue.js:5:56056
    at rX (vue.js:5:56165)
    at vue.js:9:14814

What should have happened instead?:

The share highlight article shoulder render for all articles.
Like here: https://en.wikipedia.org/wiki/Earth?mpo=share-highlight:treatment

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

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

Event Timeline

Change #1286964 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[mediawiki/extensions/ReaderExperiments@master] Handle share-highlight images w/o resizeUrl

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

It appears to impact share on articles with images where the original size is under a certain threshold.

There seems to be a bug in mw.util.resizeUrl
if you pass https://upload.wikimedia.org/wikipedia/commons/f/f3/Marc_autograph.png in it cannot resize the image because the original size of https://en.wikipedia.org/wiki/file:Marc_autograph.png is 267px I think in this case you want to use the image directly.

I can replicate on https://it.wikipedia.org/wiki/La_gabbianella_e_il_gatto?mpo=share-highlight:treatment#

Change #1287000 had a related patch set uploaded (by Jdlrobson; author: Kimberly Sarabia):

[mediawiki/extensions/ReaderExperiments@wmf/1.47.0-wmf.2] Handle share-highlight images w/o resizeUrl

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

Change #1286964 merged by Eric Gardner:

[mediawiki/extensions/ReaderExperiments@master] Handle share-highlight images w/o resizeUrl

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

Change #1287000 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@wmf/1.47.0-wmf.2] Handle share-highlight images w/o resizeUrl

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

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:35:26Z] <jdlrobson@deploy1003> Started scap sync-world: Backport for [[gerrit:1287000|Handle share-highlight images w/o resizeUrl (T426215)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:37:23Z] <jdlrobson@deploy1003> jdlrobson: Backport for [[gerrit:1287000|Handle share-highlight images w/o resizeUrl (T426215)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-05-13T20:42:58Z] <jdlrobson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1287000|Handle share-highlight images w/o resizeUrl (T426215)]] (duration: 07m 32s)

It's now deployed and fixed on Italian (https://it.wikipedia.org/wiki/La_gabbianella_e_il_gatto?mpo=share-highlight:treatment#)
Will be fixed everywhere (including english wikipedia) tomorrow.