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

Issue 2246833002: Ignore reentrancy for ImeThread triggering (Closed)

Created:
4 years, 4 months ago by Changwan Ryu
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ignore reentrancy for ImeThread triggering In the delayed activation of input connection, we call requestFocus() on proxy view, and this triggers HwSecImmHelper.isPasswordInputType() on Huawei phone, which in turn calls View#onCreateInputConnection() so there is an infinite loop, which eventually causes stackoverflow. Presumably isPasswordInputType() is only concerned about whether onCreateInputConnection()'s outAttrs.inputType is password type or not, so we fill out outAttrs.inputType and early out when there is a reentrance. BUG=636197 Committed: https://crrev.com/f5feceb259130400bc3f05826c8bc625f3399794 Cr-Commit-Position: refs/heads/master@{#415220}

Patch Set 1 #

Patch Set 2 : generalized to reentrancy guarding #

Total comments: 4

Patch Set 3 : changed scope and fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -9 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java View 1 2 4 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
Changwan Ryu
PTAL
4 years, 4 months ago (2016-08-15 07:17:42 UTC) #4
aelias_OOO_until_Jul13
I'd like us to try some more to find a local repro before we land. ...
4 years, 4 months ago (2016-08-15 20:07:49 UTC) #7
Changwan Ryu
I've generalized it a bit. Could you take another look?
4 years, 3 months ago (2016-08-29 07:22:34 UTC) #11
aelias_OOO_until_Jul13
https://codereview.chromium.org/2246833002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java File content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java (right): https://codereview.chromium.org/2246833002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java#newcode117 content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java:117: ImeUtils.computeEditorInfo( Can we move this up a few levels ...
4 years, 3 months ago (2016-08-29 22:49:02 UTC) #14
Changwan Ryu
PTAL https://codereview.chromium.org/2246833002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java File content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java (right): https://codereview.chromium.org/2246833002/diff/20001/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java#newcode117 content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnectionFactory.java:117: ImeUtils.computeEditorInfo( On 2016/08/29 22:49:02, aelias wrote: > Can ...
4 years, 3 months ago (2016-08-30 01:13:03 UTC) #16
aelias_OOO_until_Jul13
lgtm
4 years, 3 months ago (2016-08-30 05:41:28 UTC) #20
Changwan Ryu
4 years, 3 months ago (2016-08-30 05:45:54 UTC) #21
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/2246833002/40001
4 years, 3 months ago (2016-08-30 05:47:15 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-30 06:25:59 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 06:29:12 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f5feceb259130400bc3f05826c8bc625f3399794
Cr-Commit-Position: refs/heads/master@{#415220}

Powered by Google App Engine
This is Rietveld 408576698