Last modified: 2014-01-03 13:18:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61249, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59249 - SVG icons embedded in stylesheets broken in Wikimedia production due to mime-type confusion
SVG icons embedded in stylesheets broken in Wikimedia production due to mime-...
Status: RESOLVED DUPLICATE of bug 59234
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Highest major (vote)
: ---
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 13:10 UTC by Krinkle
Modified: 2014-01-03 13:18 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of problem in production. (295.17 KB, image/png)
2014-01-03 13:10 UTC, Krinkle
Details

Description Krinkle 2014-01-03 13:10:52 UTC
Created attachment 14219 [details]
Screenshot of problem in production.

As of recently, we have SVG versions of the external link icons in MediaWiki. These are embedded as base64 encoded data uris by CSSMin in ResourceLoader.

Locally, these are working fine for me. Comes out as:

 background-image: linear-gradient(transparent,transparent),url(data:image/svg+xml;base64,PD...

In production, however, they are broken.
E.g.: https://www.mediawiki.org/wiki/VisualEditor/Basic_example_worksheet#Links

 background-image: linear-gradient(transparent,transparent),url(data:application/xml;base64,PD...

I can consistently reproduce this in Chrome (latest stable). I eliminated other causes by verifying that it breaks locally if I change the mime type in the CSS manually, and visa versa by changing it to image/svg+xml in the browser console when looking at production.


Not sure if this supposed to work according to the spec, but fact is, Chrome (maybe other browsers as well) does not accept application/xml in data uris for background images.
Comment 2 Andre Klapper 2014-01-03 13:18:45 UTC

*** This bug has been marked as a duplicate of bug 59234 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links