mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
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:
parent
48f75e3c03
commit
4df2f55b32
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user