Bug 981852 - Push GeckoEvents to a background thread. r=mfinkle

This commit is contained in:
Wes Johnston 2014-03-26 21:21:40 -07:00
parent 870baee508
commit a484759ef7

View File

@ -2287,8 +2287,13 @@ public class GeckoAppShell
}
@WrapElementForJNI(stubName = "HandleGeckoMessageWrapper")
public static void handleGeckoMessage(String message) {
sEventDispatcher.dispatchEvent(message);
public static void handleGeckoMessage(final String message) {
ThreadUtils.postToBackgroundThread(new Runnable() {
@Override
public void run() {
sEventDispatcher.dispatchEvent(message);
}
});
}
@WrapElementForJNI