if (NS_SUCCEEDED(rv)) {
if (NS_SUCCEEDED(rv))
nsAppShellService::CreateTopLevelWindow(nsIXULWindow *aParent,                                  nsIURI *aUrl,                                   PRBool aShowWindow, PRBool aLoadDefaultPage,                                  PRUint32 aChromeMask,                                  PRInt32 aInitialWidth, PRInt32 aInitialHeight,                                  nsIXULWindow **aResult){  nsresult rv;  rv = JustCreateTopWindow(aParent, aUrl, aShowWindow, aLoadDefaultPage,                                 aChromeMask, aInitialWidth, aInitialHeight,                                 PR_FALSE, aResult);  if (NS_SUCCEEDED(rv)) {    // the addref resulting from this is the owning addref for this window    RegisterTopLevelWindow(*aResult);    (*aResult)->SetZLevel(CalculateWindowZLevel(aParent, aChromeMask));  }  return rv;}