bug 639353 - hang during keyboard input r=crowder a=blocking-fennec

This commit is contained in:
Brad Lassey
2011-03-07 00:38:15 -05:00
parent 592efcf26e
commit 78481f0f12

View File

@@ -483,15 +483,15 @@ public class GeckoAppShell
// Block the current thread until the Gecko event loop is caught up
public static void geckoEventSync() {
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.GECKO_EVENT_SYNC));
mGeckoSyncLock.lock();
mGeckoSyncAcked = false;
GeckoAppShell.sendEventToGecko(
new GeckoEvent(GeckoEvent.GECKO_EVENT_SYNC));
while (!mGeckoSyncAcked) {
try {
mGeckoSyncCond.await();
mGeckoSyncCond.await();
} catch (InterruptedException e) {
break;
break;
}
}
mGeckoSyncLock.unlock();