зеркало из https://github.com/mozilla/gecko-dev.git
Bug 121431 - LoadDefaultProfileDir() returns an error when it shouldn't. Returning this error, which isn't really an error, aborts startup when creating a new profile in turbo mode. r=bnesse@netscape.com/sr=alecf@netscape.com
This commit is contained in:
Родитель
cc10ac2283
Коммит
ba7c350d9b
|
@ -617,16 +617,14 @@ nsProfile::LoadDefaultProfileDir(nsCString & profileURLStr, PRBool canInteract)
|
|||
}
|
||||
|
||||
PRBool prefs_converted = PR_FALSE;
|
||||
rv = prefBranch->GetBoolPref("prefs.converted-to-utf8", &prefs_converted);
|
||||
if(NS_FAILED(rv)) return rv;
|
||||
(void)prefBranch->GetBoolPref("prefs.converted-to-utf8", &prefs_converted);
|
||||
|
||||
if (!prefs_converted)
|
||||
{
|
||||
nsCOMPtr <nsIPrefConverter> pPrefConverter = do_CreateInstance(kPrefConverterCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (!pPrefConverter) return NS_ERROR_FAILURE;
|
||||
|
||||
rv = pPrefConverter->ConvertPrefsToUTF8();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче