Backed out changeset cca78c809a20 (bug 1329351) for test_password_field_autocomplete.html failures a=backout CLOSED TREE

MozReview-Commit-ID: 43v5di5qqHh
This commit is contained in:
Wes Kocher 2017-01-12 16:15:25 -08:00
parent 48f75e3c03
commit 4df2f55b32

View File

@ -978,14 +978,6 @@ nsFormFillController::MaybeStartControllingInput(nsIDOMHTMLInputElement* aInput)
if (mPwmgrInputs.Get(inputNode))
isPwmgrInput = true;
// Don't show autocomplete on password fields regardless of datalist or
// autocomplete being enabled as we don't want to show form history on them.
// The GetType() check was more readable than !formControl->IsSingleLineTextControl(true)
// but this logic should be kept in-sync with that.
if (formControl->GetType() == NS_FORM_INPUT_PASSWORD && !isPwmgrInput) {
return;
}
if (isPwmgrInput || hasList || autocomplete) {
StartControllingInput(aInput);
}