nsCOMPtr<nsIWebShellWindow> webShellWin(do_QueryInterface(aWindow)); NS_ENSURE_TRUE(webShellWin, NS_ERROR_FAILURE); return webShellWin->Close();
return aWindow->Close();
nsAppShellService::CloseTopLevelWindow(nsIXULWindow* aWindow){   nsCOMPtr<nsIWebShellWindow> webShellWin(do_QueryInterface(aWindow));   NS_ENSURE_TRUE(webShellWin, NS_ERROR_FAILURE);   return webShellWin->Close();}