Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 2180853002: Overhaul WebView IME test (Closed)

Created:
4 years, 5 months ago by Changwan Ryu
Modified:
4 years, 4 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, yabinh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Overhaul WebView IME test There are some problems with existing WebView IME test. First off, the example is misleading. Creating a selection range in JavaScript is not straightforward and is not representative of what WebView developers should be doing. Focusing on editor is a better use case. Also, it was flaky in some old device that we deprecated. As found in crbug.com/621049, we actually need to wait for document focus before we can focus on content-editable body. The reason is that Android's view focus gets propagated to the renderer process as input message while JavaScript execution gets propagated to the renderer process as frame message, so JavaScript may be executed before document gets focused, and focusing on content-editable body is an invalid operation when document isn't yet focused. I suspect that this is the reason why some OEM email client was using selection range trick in the first place. Finally, we were testing against real input method, which can be another cause of flakiness, so it's fixed by a fake input method manager. BUG=621049, 611928 Committed: https://crrev.com/5a6c5bf0a4a00be9743eb3ba171cd5cbab6bd9a1 Cr-Commit-Position: refs/heads/master@{#408291}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -15 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java View 5 chunks +45 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Changwan Ryu
4 years, 5 months ago (2016-07-25 09:21:59 UTC) #4
Changwan Ryu
4 years, 5 months ago (2016-07-25 09:50:39 UTC) #7
aelias_OOO_until_Jul13
lgtm
4 years, 5 months ago (2016-07-25 22:14:06 UTC) #8
Changwan Ryu
sgurun@, could you take a look?
4 years, 5 months ago (2016-07-25 23:45:22 UTC) #10
sgurun-gerrit only
On 2016/07/25 23:45:22, Changwan Ryu wrote: > sgurun@, could you take a look? lgtm
4 years, 4 months ago (2016-07-27 17:50:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2180853002/1
4 years, 4 months ago (2016-07-27 23:44:50 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-28 00:23:06 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 00:25:37 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a6c5bf0a4a00be9743eb3ba171cd5cbab6bd9a1
Cr-Commit-Position: refs/heads/master@{#408291}

Powered by Google App Engine
This is Rietveld 408576698