Don't warn if there is no existing form history. Bug 325253, r=brettw.

This commit is contained in:
bryner%brianryner.com 2006-01-30 19:59:02 +00:00
Родитель b4358c2729
Коммит 328a2de451
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -586,6 +586,13 @@ NS_IMETHODIMP
nsFormHistoryImporter::ImportFormHistory(nsIFile *aFile,
nsIFormHistory *aFormHistory)
{
// Check that the file exists before we try to open it
PRBool exists;
aFile->Exists(&exists);
if (!exists) {
return NS_OK;
}
nsMorkReader reader;
nsresult rv = reader.Init();
NS_ENSURE_SUCCESS(rv, rv);