Bug 715303 - Fire focus when clicking select elements. r=mfinkle
authorWes Johnston <wjohnston@mozilla.com>
Fri, 06 Jan 2012 11:36:36 -0800
changeset 85183 309fc0271e4c0c287045e34d9435c0ace686ad05
parent 85182 af4f9dd24993d9aa5e3eda3437f6cc7490de674f
child 85184 b9601344d6d7419e03f7c39e7b394c257aca3217
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs715303
milestone12.0a1
Bug 715303 - Fire focus when clicking select elements. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -2582,16 +2582,17 @@ var FormAssistant = {
     });
     this.fireOnChange(aElement);
   },
 
   handleClick: function(aTarget) {
     let target = aTarget;
     while (target) {
       if (this._isSelectElement(target)) {
+        target.focus();
         let list = this.getListForElement(target);
         this.show(list, target);
         target = null;
         return true;
       }
       if (target)
         target = target.parentNode;
     }