Bug 716515 - Send DOMAutocomplete event when autocomplete is selected. r=mleibovic

This commit is contained in:
Wes Johnston 2012-03-15 15:33:39 -07:00
parent c9729c8e9a
commit a04b1acc59

View File

@ -2813,6 +2813,11 @@ var FormAssistant = {
// Remove focus from the textbox to avoid some bad IME interactions
this._currentInputElement.blur();
this._currentInputElement.value = aData;
let event = this._currentInputElement.ownerDocument.createEvent("Events");
event.initEvent("DOMAutoComplete", true, true);
this._currentInputElement.dispatchEvent(event);
break;
case "FormAssist:Hidden":