fixes bug 216854 "necko should not have a compile-time dependency on exthandler" r=dougt sr=bryner
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsString.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsCExternalHandlerService.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsMimeTypes.h"
|
||||
|
||||
@@ -86,7 +85,7 @@ nsIMIMEService *
|
||||
nsJARProtocolHandler::MimeService()
|
||||
{
|
||||
if (!mMimeService)
|
||||
mMimeService = do_GetService(NS_MIMESERVICE_CONTRACTID);
|
||||
mMimeService = do_GetService("@mozilla.org/mime;1");
|
||||
|
||||
return mMimeService.get();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ MODULE = necko
|
||||
LIBRARY_NAME = neckobase_s
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
exthandler \
|
||||
mimetype \
|
||||
uconv \
|
||||
locale \
|
||||
|
||||
@@ -60,8 +60,6 @@
|
||||
#include "prerror.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsInt64.h"
|
||||
#include "nsCExternalHandlerService.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsDirectoryIndexStream.h"
|
||||
#include "nsMimeTypes.h"
|
||||
|
||||
@@ -31,7 +31,6 @@ LIBRARY_NAME = nkjar_s
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
jar \
|
||||
exthandler \
|
||||
mimetype \
|
||||
caps \
|
||||
js \
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsString.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsCExternalHandlerService.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsMimeTypes.h"
|
||||
|
||||
@@ -86,7 +85,7 @@ nsIMIMEService *
|
||||
nsJARProtocolHandler::MimeService()
|
||||
{
|
||||
if (!mMimeService)
|
||||
mMimeService = do_GetService(NS_MIMESERVICE_CONTRACTID);
|
||||
mMimeService = do_GetService("@mozilla.org/mime;1");
|
||||
|
||||
return mMimeService.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user