Bug 937377 - [e10s] Selecting an item in a <select> should trigger onChange (r=felipe)

This commit is contained in:
Bill McCloskey 2013-12-10 13:46:21 -08:00
parent ae1c027b6b
commit 457ee06846

View File

@ -74,7 +74,13 @@ this.SelectContentHelper.prototype = {
receiveMessage: function(message) {
switch (message.name) {
case "Forms:SelectDropDownItem":
this.element.selectedIndex = message.data.value;
if (this.element.selectedIndex != message.data.value) {
this.element.selectedIndex = message.data.value;
let event = this.element.ownerDocument.createEvent("Events");
event.initEvent("change", true, true);
this.element.dispatchEvent(event);
}
//intentional fall-through
case "Forms:DismissedDropDown":