Page MenuHomePhabricator

Zero: prepare for WikiHiero changes
Closed, InvalidPublic

Description

Hey, I'm working on a set of changes that would change the output of <hiero> from a bucnh of tables with PNGs served from bits.wikimedia.org to divs that use inline CSS hacks to display SVGs with PNG fallback, with images served from rest.wikimedia.org. An approximate look of new output, still being worked on so subject to slight changes:

<div class="mw-hiero-div" style="width: 102px; height: 52px; background: url('http://rest.wikimedia.org/mediawiki.org/v1/hierator/png/38px/A1-A2') no-repeat; background-image: linear-gradient(transparent, transparent), url('http://rest.wikimedia.org/mediawiki.org/v1/hierator/svg/38px/A1-A2')" title="A1-A2"></div>

With WP Zero, a few issues arise:

  • Images are going to be loaded from a different domain which is not necessarily whitelisted by carriers like bits is.
  • However, considering that the new REST services are being introduced very actively, we should probably start working with carriers on always whitelisting it because it's going to be as important as bits.
  • Meanwhile, we could start removing the hieroglyphics just like the ordinary images.

Event Timeline

MaxSem raised the priority of this task from to Needs Triage.
MaxSem updated the task description. (Show Details)
MaxSem added projects: WikiHiero, Zero-Archive.
MaxSem added subscribers: Aklapper, MaxSem.

Note that if the move of the APIs to the main domains per T95229 will happen, users will not be charged in any case, but still need to assess the impact on traffic usage and whether we want to remove hieroglyphics when images are disabled.