Bug 1263887 - Update the active child on a menulist when setting selection. r=enndeakin+6102
☠☠ backed out by 78b83b86b1aa ☠ ☠
authorMike Conley <mconley@mozilla.com>
Tue, 19 Apr 2016 11:32:49 -0400
changeset 332258 c45842dc546821416db290899802ca22cb9a703d
parent 332257 1f597dfdd06acb64209d81985e40b2c3207bd984
child 332259 48ba2783004140f0331ffd4764363b5b0040f127
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin
bugs1263887
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1263887 - Update the active child on a menulist when setting selection. r=enndeakin+6102 MozReview-Commit-ID: KsXLd6ICr0B
toolkit/content/widgets/menulist.xml
--- a/toolkit/content/widgets/menulist.xml
+++ b/toolkit/content/widgets/menulist.xml
@@ -249,16 +249,18 @@
             var event = document.createEvent("Events");
             event.initEvent("select", true, true);
             this.dispatchEvent(event);
 
             event = document.createEvent("Events");
             event.initEvent("ValueChange", true, true);
             this.dispatchEvent(event);
 
+            this.menuBoxObject.activeChild = this.mSelectedInternal;
+
             return val;
           ]]>
         </setter>
       </property>
 
       <method name="handleEvent">
         <parameter name="aEvent"/>
         <body>