Bug 1417316 - [Form Autofill] Do not clear the cached autocomplete result when popup closed as it might be reused. r=ralin draft
authorLuke Chang <lchang@mozilla.com>
Wed, 15 Nov 2017 16:12:08 +0800
changeset 698080 d0a397fa79b8670e19908da0e11dddf446d8a8de
parent 697940 f0c0fb9182d695081edf170d8e3bcb8164f2c96a
child 740291 068137b22214ec9e5acfd5b56473c28b2a2bc4f6
push id89196
push userbmo:lchang@mozilla.com
push dateWed, 15 Nov 2017 08:23:38 +0000
reviewersralin
bugs1417316
milestone59.0a1
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
browser/extensions/formautofill/FormAutofillContent.jsm
--- 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;
     }