Bug 293461 - Make safe mode a system option and make handling by the EM less fragile. Also fixes bug 275529 - allows app ID and extension ID to be a prettyname@vendor.tld instead of {GUID}. r=darin+robstrong a=asa
git-svn-id: svn://10.0.0.236/trunk@173324 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -109,28 +109,6 @@ nsFastLoadService::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
|
||||
return rv;
|
||||
}
|
||||
|
||||
#if defined XP_MAC
|
||||
|
||||
// Mac format: "<Basename> FastLoad File" with <basename> capitalized.
|
||||
# include "nsCRT.h"
|
||||
|
||||
# define MASSAGE_BASENAME(bn) (bn.SetCharAt(nsCRT::ToUpper(bn.CharAt(0)), 0))
|
||||
# define PLATFORM_FASL_SUFFIX " FastLoad File"
|
||||
|
||||
#elif defined(XP_UNIX) || defined(XP_BEOS)
|
||||
|
||||
// Unix format: "<basename>.mfasl".
|
||||
# define MASSAGE_BASENAME(bn) /* nothing */
|
||||
# define PLATFORM_FASL_SUFFIX ".mfasl"
|
||||
|
||||
#elif defined(XP_WIN) || defined(XP_OS2)
|
||||
|
||||
// Windows format: "<basename>.mfl".
|
||||
# define MASSAGE_BASENAME(bn) /* nothing */
|
||||
# define PLATFORM_FASL_SUFFIX ".mfl"
|
||||
|
||||
#endif
|
||||
|
||||
nsresult
|
||||
nsFastLoadService::NewFastLoadFile(const char* aBaseName, nsIFile* *aResult)
|
||||
{
|
||||
@@ -154,7 +132,6 @@ nsFastLoadService::NewFastLoadFile(const char* aBaseName, nsIFile* *aResult)
|
||||
return rv;
|
||||
|
||||
nsCAutoString name(aBaseName);
|
||||
MASSAGE_BASENAME(name);
|
||||
name += PLATFORM_FASL_SUFFIX;
|
||||
rv = file->AppendNative(name);
|
||||
if (NS_FAILED(rv))
|
||||
|
||||
Reference in New Issue
Block a user