зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1531443 - Clear the `lastProfileAutoCompleteResult` during a form history fallback search. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D21587 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
fe3241cdd4
Коммит
af69d17ff0
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/*
|
||||
/**
|
||||
* Form Autofill content process module.
|
||||
*/
|
||||
|
||||
|
@ -183,6 +183,10 @@ AutofillProfileAutoCompleteSearch.prototype = {
|
|||
// none of form autofill result will be cached in other places and make the
|
||||
// result out of sync.
|
||||
autocompleteController.resetInternalState();
|
||||
} else {
|
||||
// Clear the cache so that we don't try to autofill from it after falling
|
||||
// back to form history.
|
||||
ProfileAutocomplete.lastProfileAutoCompleteResult = null;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче