bug 217954/216395 - we need to assign to |userField| regardless of whether there is a value, so we don't crash later when trying to attach autocomplete to the field.

git-svn-id: svn://10.0.0.236/trunk@146499 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com 2003-09-01 21:11:30 +00:00
parent d5aaf41ca9
commit 68b9c57d27

View File

@ -636,8 +636,7 @@ nsPasswordManager::OnStateChange(nsIWebProgress* aWebProgress,
if (temp) {
temp->GetValue(oldUserValue);
if (oldUserValue.IsEmpty())
userField = temp;
userField = temp;
} else {
continue;
}
@ -649,8 +648,7 @@ nsPasswordManager::OnStateChange(nsIWebProgress* aWebProgress,
if (temp) {
temp->GetValue(oldPassValue);
if (oldPassValue.IsEmpty())
passField = temp;
passField = temp;
} else {
continue;
}