зеркало из https://github.com/mozilla/gecko-dev.git
Bug 735747 - Form autocomplete doesn't trigger oninput event. r+a=mfinkle
This commit is contained in:
Родитель
ad4fa5ee4b
Коммит
5babedb882
|
@ -2985,9 +2985,7 @@ var FormAssistant = {
|
|||
if (!this._currentInputElement)
|
||||
break;
|
||||
|
||||
// Remove focus from the textbox to avoid some bad IME interactions
|
||||
this._currentInputElement.blur();
|
||||
this._currentInputElement.value = aData;
|
||||
this._currentInputElement.QueryInterface(Ci.nsIDOMNSEditableElement).setUserInput(aData);
|
||||
|
||||
let event = this._currentInputElement.ownerDocument.createEvent("Events");
|
||||
event.initEvent("DOMAutoComplete", true, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче