Bug 433070 - Cannot import passwords from Seamonkey. r=gavin

This commit is contained in:
Bruno Calvignac 2009-06-22 13:38:31 +02:00
parent f3bafc5032
commit c552497569

View File

@ -683,8 +683,9 @@ nsSeamonkeyProfileMigrator::CopyPasswords(PRBool aReplace)
nsCOMPtr<nsILoginManagerStorage> importer(
do_CreateInstance("@mozilla.org/login-manager/storage/legacy;1"));
nsCOMPtr<nsIFile> signonsFile(do_QueryInterface(mSourceProfile));
signonsFile->SetLeafName(fileName);
nsCOMPtr<nsIFile> signonsFile;
mSourceProfile->Clone(getter_AddRefs(signonsFile));
signonsFile->Append(fileName);
importer->InitWithFile(signonsFile, nsnull);