nsAppShellService::CloseTopLevelWindow(nsIWidget* aWindow)
nsAppShellService::CloseTopLevelWindow(nsIXULWindow* aWindow)
nsAppShellService::CloseTopLevelWindow(nsIWidget* aWindow){  nsresult rv;  rv = UnregisterTopLevelWindow(aWindow);  if (0 == mWindowList->Count()) {    mAppShell->Exit();  }  return rv;}