Bug 573799 - Always process IME events, r=vlad
authorMichael Wu <mwu@mozilla.com>
Tue, 22 Jun 2010 17:15:29 -0700
changeset 44159 aa45303615c80a66fab1e6330e4fdcedb379aa1a
parent 44158 7a66915cab32989699f46f04aecf14c141707578
child 44160 ba00f1a51ca508f879c47c934e1343b50b003ccd
push id13999
push usermwu@mozilla.com
push dateWed, 23 Jun 2010 00:20:15 +0000
treeherdermozilla-central@aa45303615c8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvlad
bugs573799
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 573799 - Always process IME events, r=vlad
widget/src/android/nsWindow.cpp
--- a/widget/src/android/nsWindow.cpp
+++ b/widget/src/android/nsWindow.cpp
@@ -633,18 +633,22 @@ nsWindow::OnGlobalAndroidEvent(AndroidGe
 
         case AndroidGeckoEvent::DRAW:
             if (TopWindow())
                 TopWindow()->OnDraw(ae);
             break;
 
         case AndroidGeckoEvent::IME_EVENT:
             TopWindow()->UserActivity();
-            if (gFocusedWindow)
+            if (gFocusedWindow) {
                 gFocusedWindow->OnIMEEvent(ae);
+            } else {
+                NS_WARNING("Sending unexpected IME event to top window");
+                TopWindow()->OnIMEEvent(ae);
+            }
             break;
 
         default:
             break;
     }
 }
 
 void