(Translated by https://www.hiragana.jp/)
⚓ T306705 Images are no longer displayed on mobile edit preview
Page MenuHomePhabricator

Images are no longer displayed on mobile edit preview
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The images in the gallery are not displayed, there are just grey rectangles. Might be an issue with lazy loading.

What should have happened instead?:
The images in the gallery are displayed.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

obrazek.png (579×1 px, 51 KB)

MediaWiki: 1.39.0-wmf.8 (a4aaf3c)
MobileFrontend: 2.4.0 (875c136)

Was reproduced using:

  • Android 10 (Nokia 7 plus), Google Chrome 100 or Opera 62.5.2254.61243
  • Windows 10, Firefox 99.0.1

Event Timeline

Jdlrobson added subscribers: Esanders, Jdlrobson.

@Esanders this is a new regression related to the recent changes to run the mobile formatter on edit previews (T248493). I think you need to modify the logic in ExtMobileFrontend::domParseMobile. Let me know if you need any help.

Jdlrobson renamed this task from Images in gallery not displayed on mobile edit preview to Images are no longer displayed on mobile edit preview.Apr 25 2022, 3:57 PM

The HTML looks the same. Is this not just a case of the lazyLoadedImages JS not running?

Change 785884 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/MobileFrontend@master] lazyLoadedImages: Run on wikipage.content hook

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

@Esanders this is a new regression related to the recent changes to run the mobile formatter on edit previews (T248493). I think you need to modify the logic in ExtMobileFrontend::domParseMobile. Let me know if you need any help.

For future reference, this was actually caused by this change: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MobileFrontend/+/763622 for task T219420. Prior to our changes, the images were not using lazy loading in preview (they were always immediately loaded).

Change 785884 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] lazyLoadedImages: Run on wikipage.content hook

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

Images are displayed as expected.

For relatable visuals, I tested (on https://cs.m.wikipedia.beta.wmflabs.org/) content from https://cs.m.wikipedia.org/wiki/Severomariansk%C3%A1_vlajka as well.

After fix:

IMG_4987.PNG (2×1 px, 763 KB)

Before fix:

IMG_4988.PNG (2×1 px, 318 KB)

Ryasmeen added subscribers: Peter, Ryasmeen.

Hey @Peter: It seems like this issue has once been verified by QA, but it got moved back to Editing QA workboard again. Has there been more work/changes around this task? If so, could you please add the details on the task, so we can work on it again.

ppelberg subscribed.

Hey @Peter: It seems like this issue has once been verified by QA, but it got moved back to Editing QA workboard again. Has there been more work/changes around this task? If so, could you please add the details on the task, so we can work on it again.

Eeek.

This was a mistake on my end. I do not see any more work as needing to be done on this. Resolving!