bool GetNSIPrompt( nsCOMPtr<nsIPrompt> & outPrompt )
PRBool GetNSIPrompt( nsCOMPtr<nsIPrompt> & outPrompt )
bool GetNSIPrompt( nsCOMPtr<nsIPrompt> & outPrompt ){  nsresult rv;  NS_WITH_SERVICE(nsIAppShellService, appshellservice, kAppShellServiceCID, &rv);  if(NS_FAILED(rv)) {    return PR_FALSE;  }  nsCOMPtr<nsIWebShellWindow> webshellwindow;  appshellservice->GetHiddenWindow(getter_AddRefs(webshellwindow));  outPrompt = do_QueryInterface(webshellwindow);  if ( outPrompt.get() != NULL )  	return PR_TRUE;  return PR_FALSE;} 