NS_IMETHODIMP
nsBaseAppShell::RunBeforeNextEvent(nsIRunnable* aRunnable)
{
  nsCOMPtr<nsIRunnable> runnable = aRunnable;
  ScheduleSyncSection(runnable.forget(), false);
  return NS_OK;
}
NS_IMETHODIMP
nsBaseAppShell::RunBeforeNextEvent(nsIRunnable* aRunnable)
{
    ScheduleSyncSection(aRunnable, false);
    return NS_OK;
}
NS_IMETHODIMP
nsBaseAppShell::RunInStableState(nsIRunnable* aRunnable)
{
    ScheduleSyncSection(aRunnable, true);
    return NS_OK;
}
void
nsBaseAppShell::RunInStableState(already_AddRefed<nsIRunnable> aRunnable)
{
  ScheduleSyncSection(mozilla::Move(aRunnable), true);
}