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

Issue 14129003: Fix the incorrect native ImeAdapter attach and detach. (Closed)

Created:
7 years, 8 months ago by Shouqun Liu
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix the incorrect native ImeAdapter attach and detach. 1. When navigating to new URL, the nativeImeAdapter in new rwhv is not attached to the ImeAdapter. 2. When the old rwhv is destructed, ImeAdapter.detach is called with old rwhv's nativeImeAdapter, which may incorrectly set the nativeImeAdapter to an invalid value since the destrucion is possibly later than the new rwhv's attach. So when attaching, check whether the ImeAdapter is already attached. BUG=230247 TEST=ContentShell Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194810

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comment #

Total comments: 2

Patch Set 3 : update the patch #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Shouqun Liu
7 years, 8 months ago (2013-04-11 05:41:50 UTC) #1
aurimas (slooooooooow)
lgtm with a nit https://codereview.chromium.org/14129003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (right): https://codereview.chromium.org/14129003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#newcode266 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:266: if (mNativeImeAdapterAndroid == nativeImeAdapter) { ...
7 years, 8 months ago (2013-04-11 05:51:56 UTC) #2
Shouqun Liu
https://codereview.chromium.org/14129003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (right): https://codereview.chromium.org/14129003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#newcode266 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:266: if (mNativeImeAdapterAndroid == nativeImeAdapter) { Done, a comment added. ...
7 years, 8 months ago (2013-04-11 06:07:48 UTC) #3
Shouqun Liu
On 2013/04/11 05:41:50, Shouqun Liu wrote: + sievers@ for OWNERS check
7 years, 8 months ago (2013-04-11 12:34:18 UTC) #4
no sievers
On 2013/04/11 12:34:18, Shouqun Liu wrote: > On 2013/04/11 05:41:50, Shouqun Liu wrote: > > ...
7 years, 8 months ago (2013-04-11 21:48:12 UTC) #5
no sievers
+joth see my previous comment.
7 years, 8 months ago (2013-04-11 21:49:47 UTC) #6
joth
+1 the sievers comment... this should (ha!) be easy to do right away... https://codereview.chromium.org/14129003/diff/5001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File ...
7 years, 8 months ago (2013-04-11 23:30:34 UTC) #7
Shouqun Liu
Hi joth, patch updated, thanks https://codereview.chromium.org/14129003/diff/5001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (right): https://codereview.chromium.org/14129003/diff/5001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#newcode269 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:269: if (mNativeImeAdapterAndroid == nativeImeAdapter) ...
7 years, 8 months ago (2013-04-12 01:46:55 UTC) #8
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/14129003/diff/23003/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://chromiumcodereview.appspot.com/14129003/diff/23003/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode256 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:256: if (mNativeImeAdapterAndroid !=0) { need a space after != ...
7 years, 8 months ago (2013-04-14 19:32:15 UTC) #9
Shouqun Liu
https://codereview.chromium.org/14129003/diff/23003/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://codereview.chromium.org/14129003/diff/23003/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode256 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:256: if (mNativeImeAdapterAndroid !=0) { On 2013/04/14 19:32:15, aurimas wrote: ...
7 years, 8 months ago (2013-04-15 00:51:54 UTC) #10
Shouqun Liu
Hi joth@, OK to commit this patch?
7 years, 8 months ago (2013-04-17 01:19:40 UTC) #11
joth
lgtm
7 years, 8 months ago (2013-04-17 01:23:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/14129003/31001
7 years, 8 months ago (2013-04-18 00:33:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/14129003/31001
7 years, 8 months ago (2013-04-18 00:34:03 UTC) #14
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 8 months ago (2013-04-18 06:19:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shouqun.liu@intel.com/14129003/31001
7 years, 8 months ago (2013-04-18 06:38:55 UTC) #16
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 06:40:58 UTC) #17
Message was sent while issue was closed.
Change committed as 194810

Powered by Google App Engine
This is Rietveld 408576698