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 id17335
push usermwu@mozilla.com
push dateFri, 03 Dec 2010 01:30:35 +0000
treeherdermozilla-central@15cdaa1d538b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, blocking-fennec
bugs610785
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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" },