adding xpinstall mime type. 11281

This commit is contained in:
dougt%netscape.com 2000-05-08 05:09:21 +00:00
Родитель f3a1d2e07d
Коммит 316616f625
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -72,6 +72,7 @@
#define APPLICATION_JAVAARCHIVE "application/java-archive"
#define APPLICATION_MARIMBA "application/marimba"
#define APPLICATION_XMARIMBA "application/x-marimba"
#define APPLICATION_XPINSTALL "application/x-xpinstall"
#define AUDIO_BASIC "audio/basic"

Просмотреть файл

@ -290,9 +290,8 @@ NS_IMETHODIMP
nsXMLMIMEDataSource::Serialize() {
return NS_ERROR_FAILURE;
#if 0
nsresult rv = NS_OK;
nsCOMPtr<nsIChannel> channel;
nsresult rv = NS_OK;
nsCOMPtr<nsIChannel> channel;
NS_WITH_SERVICE(nsIFileTransportService, fts, kFileTransportServiceCID, &rv) ;
if(NS_FAILED(rv)) return rv ;
@ -495,6 +494,9 @@ nsXMLMIMEDataSource::InitFromHack() {
rv = AddMapping( "application/x-arj", "arj", "ARJ file", nsnull);
if (NS_FAILED(rv)) return rv;
rv = AddMapping(APPLICATION_XPINSTALL, "xpi", "XPInstall Install", nsnull, 'xpi*','MOSS');
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
@ -503,6 +505,7 @@ nsXMLMIMEDataSource::InitFromHack() {
NS_IMETHODIMP
nsXMLMIMEDataSource::GetFromExtension(const char *aFileExt, nsIMIMEInfo **_retval) {
// for now we're assuming file extensions are case insensitive.
nsCAutoString fileExt(aFileExt);
fileExt.ToLowerCase();