Bug 912983 - Text selection "cursor" persists on blur. r=margaret, a=lsblakk
authorMark Capella <markcapella@twcny.rr.com>
Tue, 22 Oct 2013 18:46:43 -0400
changeset 160890 c71d8cd3ddee0d468ab5e721dc951a75dfc1cfbc
parent 160889 382f3133d96188fd237692c537739fc72bc2266c
child 160891 f9931a182295b5c934bb5cc9f3e0b69d57830ff4
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, lsblakk
bugs912983
milestone26.0a2
Bug 912983 - Text selection "cursor" persists on blur. r=margaret, a=lsblakk
mobile/android/chrome/content/SelectionHandler.js
--- a/mobile/android/chrome/content/SelectionHandler.js
+++ b/mobile/android/chrome/content/SelectionHandler.js
@@ -281,17 +281,17 @@ var SelectionHandler = {
    * Initializes SelectionHandler and positions the caret handle.
    *
    * @param aX, aY tap location in client coordinates.
    */
   attachCaret: function sh_attachCaret(aElement) {
     this._initTargetInfo(aElement);
 
     this._contentWindow.addEventListener("keydown", this, false);
-    this._contentWindow.addEventListener("blur", this, false);
+    this._contentWindow.addEventListener("blur", this, true);
 
     this._activeType = this.TYPE_CURSOR;
     this._positionHandles();
 
     sendMessageToJava({
       type: "TextSelection:ShowHandles",
       handles: [this.HANDLE_TYPE_MIDDLE]
     });