summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_win.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 18:41:52 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 18:41:52 +0000
commit43f4efff5ac8ccc72e42db8b87add4db82480f2e (patch)
tree7981e9b74b85468265dfef048e18231c6b03d3d6 /chrome/browser/autocomplete/autocomplete_edit_view_win.h
parent99d67c539065f124f02880b6084028411de42faa (diff)
downloadchromium_src-43f4efff5ac8ccc72e42db8b87add4db82480f2e.zip
chromium_src-43f4efff5ac8ccc72e42db8b87add4db82480f2e.tar.gz
chromium_src-43f4efff5ac8ccc72e42db8b87add4db82480f2e.tar.bz2
Fix a crash when clicking a popup entry while composing in the Microsoft IME on XP.
We were forcing the IME to close during the process of updating the edit, which in turn caused us to try and handle "changes to the edit", leading to us (wrongly) rerunning autocomplete and blowing away our result set. BUG=13500 TEST=On XP, open a new tab, set the (Microsoft) IME to Hiragana, type 'c', and then click an entry in the popup. The browser should navigate, not crash. Review URL: http://codereview.chromium.org/155330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20395 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_win.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.h b/chrome/browser/autocomplete/autocomplete_edit_view_win.h
index 0c91820..986e799 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.h
@@ -420,6 +420,10 @@ class AutocompleteEditViewWin
// unnecessary event. See detailed comments in OnMouseMove().
bool can_discard_mousemove_;
+ // Used to prevent IME message handling in the midst of updating the edit
+ // text. See comments where this is used.
+ bool ignore_ime_messages_;
+
// Variables for tracking state before and after a possible change.
std::wstring text_before_change_;
CHARRANGE sel_before_change_;