Bug 1417316 - [Form Autofill] Do not clear the cached autocomplete result when popup closed as it might be reused. r=ralin
MozReview-Commit-ID: 5uOHP5Feuvh
--- a/browser/extensions/formautofill/FormAutofillContent.jsm
+++ b/browser/extensions/formautofill/FormAutofillContent.jsm
@@ -539,17 +539,16 @@ var FormAutofillContent = {
});
ProfileAutocomplete._previewSelectedProfile(selectedIndex);
}
},
onPopupClosed() {
ProfileAutocomplete._clearProfilePreview();
- ProfileAutocomplete.lastProfileAutoCompleteResult = null;
},
_markAsAutofillField(field) {
// Since Form Autofill popup is only for input element, any non-Input
// element should be excluded here.
if (!field || !(field instanceof Ci.nsIDOMHTMLInputElement)) {
return;
}