From 354b82da30c20a09546b64811bfab2ee026ffe43 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Mon, 27 Aug 2012 20:36:39 -0400 Subject: [PATCH] Bug 785520 - Scroll contenteditable elements into view when focused. r=Cwiiis --- mobile/android/chrome/content/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 6c764d617405..5aaa7e8bc46b 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -966,7 +966,9 @@ var BrowserApp = { return; let focused = doc.activeElement; - if ((focused instanceof HTMLInputElement && focused.mozIsTextField(false)) || (focused instanceof HTMLTextAreaElement)) { + if ((focused instanceof HTMLInputElement && focused.mozIsTextField(false)) + || (focused instanceof HTMLTextAreaElement) + || (focused.isContentEditable)) { let tab = BrowserApp.getTabForBrowser(aBrowser); let win = aBrowser.contentWindow;