Bug 824516 - Fix regression in text selection introduced in bug 708048. r=kats
authorTetsuharu OHZEKI <saneyuki.s.snyk@gmail.com>
Tue, 25 Dec 2012 01:06:40 -0500
changeset 126116 e4b389a23a95038ea1b50842fc14e749709c8345
parent 126115 066cdafa5ec3554f6e20f04deec7d73f3e082658
child 126117 914889120beb56d41c5509082d053ea0748fccbd
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs824516, 708048
milestone20.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 824516 - Fix regression in text selection introduced in bug 708048. r=kats
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1539,18 +1539,18 @@ var NativeWindow = {
                              0, aX, aY, aX, aY, false, false, false, false,
                              0, null);
         target.ownerDocument.defaultView.addEventListener("contextmenu", this, false);
         target.dispatchEvent(event);
       } else {
         this._target = null;
         BrowserEventHandler._cancelTapHighlight();
 
-        if (SelectionHandler.canSelect(rootElement))
-          SelectionHandler.startSelection(rootElement, aX, aY);
+        if (SelectionHandler.canSelect(target))
+          SelectionHandler.startSelection(target, aX, aY);
       }
     },
 
     _show: function(aEvent) {
       let popupNode = this._target;
       this._target = null;
       if (aEvent.defaultPrevented || !popupNode) {
         return;