Followup to r99653 (bug 31643) -- reenable client-side thumbnailing of SVGs on Specia...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 15 Oct 2011 02:23:22 +0000 (02:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 15 Oct 2011 02:23:22 +0000 (02:23 +0000)
commitb085bb81d455227d335150ce963d7ba4a58152fb
tree9710321fd015a64d7be4886c6a127ead50a89f89
parent64a83aac36e7564e50640db90b0e146141c516fc
Followup to r99653 (bug 31643) -- reenable client-side thumbnailing of SVGs on Special:Upload, with workaround for Firefox 7 regression.

Upstream firefox bug for hang loading some SVGs via data URI: https://bugzilla.mozilla.org/show_bug.cgi?id=694165
A fix may land as soon as Firefox 8.

This rev works around the bug by using window.URL.createObjectURL() instead of loading a data URI via FileReader; the object URL loads more cleanly and doesn't have the same hanging bug.

Needs to be replicated to UploadWizard (or moved to a shared lib!), some other fixes coming so no rush.
resources/mediawiki.special/mediawiki.special.upload.js