For now only record for password manager autocomplete but the event structure is setup to support others.
Differential Revision: https://phabricator.services.mozilla.com/D66730
--HG--
extra : moz-landing-system : lando
* To ensure it is only recorded the first time for a site per session, the event is recorded in the parent process.
* To ensure it is recorded any time the option could be displayed in the popup, there is a check everywhere AutoCompleteResultView.setResults gets called, since the 'results' object represents the options presented in the autocomplete popup, including the password generation option.
* AutoCompleteParent.showPopupWithResults
* This covers the case when 'results' changes, and the popup is not currently open.
* AutoCompleteParent.invalidate
* This covers the case when 'results' changes, and the popup is already open.
* Also removed some dead code (an extraneous if/else block) in showPopupWithResults.
Differential Revision: https://phabricator.services.mozilla.com/D65407
--HG--
extra : moz-landing-system : lando