Bug 1200177 - Form Assistant is not always correctly closed. r=mcomella

This commit is contained in:
dominique vincent 2015-08-31 14:28:58 +02:00
parent 380a03b143
commit 1dc9e98f9f

View File

@ -5565,7 +5565,12 @@ var FormAssistant = {
if (this._showValidationMessage(focused))
break;
this._showAutoCompleteSuggestions(focused, function () {});
let checkResultsClick = hasResults => {
if (!hasResults) {
this._hideFormAssistPopup();
}
};
this._showAutoCompleteSuggestions(focused, checkResultsClick);
} else {
// temporarily hide the form assist popup while we're panning or zooming the page
this._hideFormAssistPopup();