Page MenuHomePhabricator

ImageMap links non-functional in Wikipedia App
Closed, ResolvedPublicBUG REPORT

Description

This problem was first reported here in de.Wikipedia: https://de.wikipedia.org/wiki/Wikipedia:Fragen_zur_Wikipedia#Verweissensitive_Grafik

Steps to replicate the issue:

What happens?:

  • Nothing happens, so no new article opens

What should have happened instead?:

  • If you touch Asia, the Wikipedia article "Asien" should open; this works if I use the "open in browser" function for the article, so mobile browsers don't have the problem

Details

Event Timeline

I had a look at the change on ImageMap in MediaWiki 1.45/wmf.1:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ImageMap/+/1142604 (belongs to https://phabricator.wikimedia.org/T341775)
I noticed that this change replaces <tag/> by <tag /> (extra space before closing slash) for <img> and <area> at some points in the rendered html. I found this out by comparing the html source of the article with the version in the internet archive.

Is it possible that this change is a problem for the app? Are there more side effects from the switch from the XML class to the HTML class?

Change #1148320 had a related patch set uploaded (by Dbrant; author: Dbrant):

[mediawiki/services/mobileapps@master] Fix click interactions on ImageMaps.

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

Change #1148320 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Fix click interactions on ImageMaps.

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

It should be testable on Wikipedia 7.7.6 (5357)