Bug 1539677 - Do not highlight the password field when pressing enter on the footer or the insecure field warning. r=MattN

Differential Revision: https://phabricator.services.mozilla.com/D27405
This commit is contained in:
prathiksha
2019-04-19 11:54:32 -07:00
parent 7e1577b886
commit cbe1725fcf
6 changed files with 136 additions and 8 deletions

View File

@@ -1273,7 +1273,7 @@ nsresult nsAutoCompleteController::EnterMatch(bool aIsPopupSelection,
ClosePopup();
bool cancel;
bool itemWasSelected = selectedIndex >= 0;
bool itemWasSelected = selectedIndex >= 0 && !value.IsEmpty();
input->OnTextEntered(aEvent, itemWasSelected, &cancel);
return NS_OK;