зеркало из https://github.com/mozilla/gecko-dev.git
Don't warn if there is no existing form history. Bug 325253, r=brettw.
This commit is contained in:
Родитель
b4358c2729
Коммит
328a2de451
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче