From c9c9cb1b1b802c67eca25c8dc9487bb30ef87dec Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 11 Mar 2015 23:56:00 -0400 Subject: [PATCH] Bug 783846 - Use SelectionHandler._getEditor when moving caret. r=wesj --- mobile/android/chrome/content/SelectionHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/android/chrome/content/SelectionHandler.js b/mobile/android/chrome/content/SelectionHandler.js index 498b97117450..9df76a501b72 100644 --- a/mobile/android/chrome/content/SelectionHandler.js +++ b/mobile/android/chrome/content/SelectionHandler.js @@ -965,7 +965,7 @@ var SelectionHandler = { _moveCaret: function sh_moveCaret(aX, aY) { // Get rect of text inside element let range = document.createRange(); - range.selectNodeContents(this._targetElement.QueryInterface(Ci.nsIDOMNSEditableElement).editor.rootElement); + range.selectNodeContents(this._getEditor().rootElement); let textBounds = range.getBoundingClientRect(); // Get rect of editor