Bug 610785 - Can't open downloaded .apk file. r=bz a=blocking-fennec
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 02 Dec 2010 14:56:29 -0800
changeset 58526 a7692d5dd29b6ebdc4d68caa2a768072ede4c306
parent 58525 318d60678767e973b872f2cb0aa518ca456993f6
child 58527 bcf68bd9321dcf7012b1d36a6a3bc3914c7ecc4b
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersbz, blocking-fennec
bugs610785
milestone2.0b8pre
Bug 610785 - Can't open downloaded .apk file. r=bz a=blocking-fennec
uriloader/exthandler/nsExternalHelperAppService.cpp
--- a/uriloader/exthandler/nsExternalHelperAppService.cpp
+++ b/uriloader/exthandler/nsExternalHelperAppService.cpp
@@ -562,16 +562,19 @@ static nsExtraMimeTypeEntry extraMimeEnt
 #else
   { APPLICATION_OCTET_STREAM, "exe,com,bin", "Binary File" },
 #endif
   { APPLICATION_GZIP2, "gz", "gzip" },
   { "application/x-arj", "arj", "ARJ file" },
   { APPLICATION_XPINSTALL, "xpi", "XPInstall Install" },
   { APPLICATION_POSTSCRIPT, "ps,eps,ai", "Postscript File" },
   { APPLICATION_XJAVASCRIPT, "js", "Javascript Source File" },
+#ifdef ANDROID
+  { "application/vnd.android.package-archive", "apk", "Android Package" },
+#endif
   { IMAGE_ART, "art", "ART Image" },
   { IMAGE_BMP, "bmp", "BMP Image" },
   { IMAGE_GIF, "gif", "GIF Image" },
   { IMAGE_ICO, "ico,cur", "ICO Image" },
   { IMAGE_JPG, "jpeg,jpg,jfif,pjpeg,pjp", "JPEG Image" },
   { IMAGE_PNG, "png", "PNG Image" },
   { IMAGE_TIFF, "tiff,tif", "TIFF Image" },
   { IMAGE_XBM, "xbm", "XBM Image" },