зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1135451 - fillForm() cleanup part E: remove didFillForm. r=MattN
This commit is contained in:
Родитель
1ec42f7a25
Коммит
dd919a3958
|
@ -742,7 +742,6 @@ var LoginManagerContent = {
|
|||
|
||||
// We will always have a selectedLogin at this point.
|
||||
|
||||
var didFillForm = false;
|
||||
if (autofillForm && !isFormDisabled) {
|
||||
// Fill the form
|
||||
|
||||
|
@ -764,18 +763,17 @@ var LoginManagerContent = {
|
|||
if (passwordField.value != selectedLogin.password) {
|
||||
passwordField.setUserInput(selectedLogin.password);
|
||||
}
|
||||
didFillForm = true;
|
||||
} else if (!autofillForm) {
|
||||
log("autofillForms=false but form can be filled; notified observers");
|
||||
recordAutofillResult(AUTOFILL_RESULT.NO_AUTOFILL_FORMS);
|
||||
return;
|
||||
} else if (isFormDisabled) {
|
||||
log("autocomplete=off but form can be filled; notified observers");
|
||||
recordAutofillResult(AUTOFILL_RESULT.AUTOCOMPLETE_OFF);
|
||||
return;
|
||||
}
|
||||
|
||||
if (didFillForm) {
|
||||
recordAutofillResult(AUTOFILL_RESULT.FILLED);
|
||||
}
|
||||
recordAutofillResult(AUTOFILL_RESULT.FILLED);
|
||||
},
|
||||
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче