diff --git a/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp b/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp index 8412ac61251..060b944cf16 100755 --- a/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp +++ b/browser/components/dirprovider/nsBrowserDirectoryProvider.cpp @@ -162,7 +162,7 @@ nsBrowserDirectoryProvider::GetFile(const char *aKey, PRBool *aPersist, } } - if (NS_SUCCEEDED(rv) || !exists) { + if (NS_SUCCEEDED(rv) && !exists) { if (!restoreBookmarksBackup || NS_FAILED(RestoreBookmarksFromBackup(leafstr, parentDir, file))) EnsureProfileFile(leafstr, parentDir, file);