Last modified: 2012-07-20 17:14:28 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 T30658, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28658 - Use MHTML URLs as an alternative to data URLs in IE < 8
Use MHTML URLs as an alternative to data URLs in IE < 8
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-22 08:30 UTC by Roan Kattouw
Modified: 2012-07-20 17:14 UTC (History)
3 users (show)

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


Attachments

Description Roan Kattouw 2011-04-22 08:30:12 UTC
http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/

With this technique, we could output something like:

background-image: url(data:image/png;base64,iVBORw .... ); // For normal browsers
background-image: url(mhtml:http://example.com/w/load.php?modules=blah&only=mhtmlimages!foo) !ie; // For IE. Can also use star hack as suggested in the article

Where load.php?modules=blah&only=mhtmlimages would output something like:

/*
Content-Type: multipart/related; boundary="_RLFTW"

--_RLFTW
Content-Location:foo
Content-Transfer-Encoding:base64

iVBORw...
--_RLFTW
Content-Location:bar
Content-Transfer-Encoding:base64

R0lGOD...
*/

There seem to be some issues with this on Vista, but we'll cross that bridge when we come to it. For now this is a nice-to-have for ResourceLoader 2.0.
Comment 1 Krinkle 2012-06-20 08:19:46 UTC
What is the advantage of this over linking to the file directly? If it is going to be an http request anyway
Comment 2 Krinkle 2012-07-20 17:13:20 UTC
(In reply to comment #1)
> What is the advantage of this over linking to the file directly? If it is going
> to be an http request anyway
Comment 3 Krinkle 2012-07-20 17:14:28 UTC
Per it being an http request still, and requiring non-standard hacks and only for IE7 below. I think we can just stick to the current fallback, which is to load them from the url directly instead of embedding it.

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


Navigation
Links