nsString 			mTitle(dialogTitle); nsString 			mText(text); CWebBrowserContainer *w = GetWebBrowser( parent );
NS_ENSURE_ARG_POINTER(_retval);  StDialogHandler	theHandler(dlog_Confirm, CBrowserChrome::GetLWindowForDOMWindow(parent)); LWindow			 *theDialog = theHandler.GetDialog(); nsCAutoString    cStr; Str255           pStr;  CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(dialogTitle), pStr); theDialog->SetDescriptor(pStr);  LStaticText	*msgText = dynamic_cast<LStaticText*>(theDialog->FindPaneByID('Msg ')); CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(text), cStr); cStr.ReplaceChar('\n', '\r'); msgText->SetText(const_cast<char *>(cStr.get()), cStr.Length());
NS_IMETHODIMP CPromptService::Confirm(nsIDOMWindow *parent,                                      const PRUnichar *dialogTitle,                                      const PRUnichar *text,                                      PRBool *_retval){	nsString 			mTitle(dialogTitle);	nsString 			mText(text);	CWebBrowserContainer *w = GetWebBrowser( parent );	if (w->InvokeDialogCallback(Pt_MOZ_DIALOG_CONFIRM, ToNewCString(mTitle), ToNewCString(mText), nsnull, nsnull) == Pt_CONTINUE)		*_retval = PR_TRUE;	else		*_retval = PR_FALSE;	return NS_OK;}