summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/views/focus_manager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/views/focus_manager.cc b/chrome/views/focus_manager.cc
index f18cc2c..6dac309 100644
--- a/chrome/views/focus_manager.cc
+++ b/chrome/views/focus_manager.cc
@@ -191,6 +191,13 @@ static LRESULT CALLBACK FocusWindowCallback(HWND window, UINT message,
if (RerouteMouseWheel(window, wParam, lParam))
return 0;
break;
+ case WM_IME_CHAR:
+ // Issue 7707: A rich-edit control may crash when it receives a
+ // WM_IME_CHAR message while it is processing a WM_IME_COMPOSITION
+ // message. Since view controls don't need WM_IME_CHAR messages,
+ // we prevent WM_IME_CHAR messages from being dispatched to view
+ // controls via the CallWindowProc() call.
+ return 0;
default:
break;
}