*aWindow = mHiddenWindow; NS_IF_ADDREF(*aWindow); return *aWindow ? NS_OK : NS_ERROR_FAILURE;
NS_ASSERTION(aWindow, "null param to GetHiddenWindow"); rv = mHiddenWindow; NS_IF_ADDREF(rv); *aWindow = rv; return rv ? NS_OK : NS_ERROR_FAILURE;
nsAppShellService::GetHiddenWindow(nsIXULWindow **aWindow){  NS_ENSURE_ARG_POINTER(aWindow);  *aWindow = mHiddenWindow;  NS_IF_ADDREF(*aWindow);  return *aWindow ? NS_OK : NS_ERROR_FAILURE;}