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

Issue 467015: Reverts my r4300.... (Closed)

Created:
11 years ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Reverts my r4300 and re-fixes Issue 3156 and 13500. My r4300, which is a fix Issue 3156, has been causing regressions (Issue 9596, Issue 13500, Issue 29290, etc.) Every time when this change caused regressions, we added more code to Chromium and made Chromium code more complicated. So, I think it is better to revert this change once and find another solution for Issue 3156 rather than to add another workaround for Issue 29290. To look into Issue 3156 more deeply, it is caused by a recursive message-handler call. When SetWindowText() is called while an IME is composing text, the IME calls SendMessage() to send a WM_IME_COMPOSITION message. When we receive this WM_IME_COMPOSITION message, it updates the omnibox and calls SetWindowText()... This recursive call caused not only Issue 3156 but also caused some other IME issues, such as Issue 13500. BUG=3156, 13500, 29290 TEST=On XP, open a new tab, set the IME to Hiragana, type 'c', and then click an entry in the popup. The browser should navigate and show the popup URL without a crash. TEST=Open Gmail, compose a new e-mail (without using a tear-off window), set the IME to Hiragana, type 'c' in its message body, and wait for the draft auto-saving. The browser should show the 'c' character. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34145

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -23 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.h View 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 chunks +14 lines, -23 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Hironori Bono
11 years ago (2009-12-04 05:09:04 UTC) #1
Peter Kasting
Do you have an idea of how to fix this in a different way? I'm ...
11 years ago (2009-12-04 06:13:00 UTC) #2
Hironori Bono
Thank you for your comments. I should have merged my new fix for Issue 3156. ...
11 years ago (2009-12-04 11:53:37 UTC) #3
Peter Kasting
http://codereview.chromium.org/467015/diff/1002/2003 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (left): http://codereview.chromium.org/467015/diff/1002/2003#oldcode625 chrome/browser/autocomplete/autocomplete_edit_view_win.cc:625: // control. To avoid this, we force the IME ...
11 years ago (2009-12-04 22:22:56 UTC) #4
Hironori Bono
Thank you for your perceptive and great comments. http://codereview.chromium.org/467015/diff/1002/2003 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (left): http://codereview.chromium.org/467015/diff/1002/2003#oldcode625 chrome/browser/autocomplete/autocomplete_edit_view_win.cc:625: // ...
11 years ago (2009-12-07 09:53:30 UTC) #5
Peter Kasting
11 years ago (2009-12-07 19:47:08 UTC) #6
LGTM.  Your explanation makes me wonder if we'll be broken on XP < SP3, or on
certain IMEs, or something, but I don't have the ability to verify that, so
let's see what happens.

Powered by Google App Engine
This is Rietveld 408576698