зеркало из https://github.com/mozilla/pjs.git
Bug 233850 - localstore.rdf is not created in user profile if it does not already exist (and doesn't exist in the profile defaults). r=ccarlen sr=darin
This commit is contained in:
Родитель
869845ff27
Коммит
00b3a89b9b
|
@ -265,8 +265,11 @@ nsProfileDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFi
|
|||
rv = domainDir->Clone(getter_AddRefs(localFile));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = localFile->AppendNative(LOCAL_STORE_FILE_50_NAME);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = EnsureProfileFileExists(localFile, domainDir);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// it's OK if we can't copy the file... it will be created
|
||||
// by client code.
|
||||
(void) EnsureProfileFileExists(localFile, domainDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (inAtom == sApp_History50) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче