bug 704217 - Quit doesn't work before Gecko is up r=dougt

This commit is contained in:
Brad Lassey
2011-11-24 02:04:26 -05:00
parent 1e551dea15
commit 1a055bcc53
6 changed files with 17 additions and 25 deletions

View File

@@ -479,7 +479,8 @@ public class GeckoAppShell
layerController.notifyLayerClientOfGeometryChange();
}
private static void sendPendingEventsToGecko() {
static void sendPendingEventsToGecko() {
try {
while (!gPendingEvents.isEmpty()) {
GeckoEvent e = gPendingEvents.removeFirst();
@@ -612,13 +613,6 @@ public class GeckoAppShell
mInputConnection.returnIMEQueryResult(result, selectionStart, selectionLength);
}
static void onAppShellReady()
{
// mLaunchState can only be Launched at this point
GeckoApp.mAppContext.setLaunchState(GeckoApp.LaunchState.GeckoRunning);
sendPendingEventsToGecko();
}
static void onXreExit() {
// mLaunchState can only be Launched or GeckoRunning at this point
GeckoApp.mAppContext.setLaunchState(GeckoApp.LaunchState.GeckoExiting);