rem: window.close(); 
add:  if (!(accountCount > 0)) { var confirmTitle = Bundle.GetStringFromName("accountWizard"); var confirmMsg = Bundle.GetStringFromName("cancelWizard"); if (commonDialogsService.Confirm(window,confirmTitle,confirmMsg)) window.close(); else return; } else window.close(); if(top.okCallback) { var state = false;  top.okCallback(state); } 
context: function onCancel() {	var firstInvalidAccount = getFirstInvalidAccount();	// if the user cancels the the wizard when it pops up because of 	// an invalid account (example, a webmail account that activation started)	// we just force create it by setting some values and calling the FinishAccount()	// see bug #47521 for the full discussion	if (firstInvalidAccount) {    	var pageData = GetPageData();		// set the fullName if it doesn't exist		if (!pageData.identity.fullName || !pageData.identity.fullName.value) {    		setPageData(pageData, "identity", "fullName", "");		}		// set the email if it doesn't exist		if (!pageData.identity.email || !pageData.identity.email.value) {    		setPageData(pageData, "identity", "email", "nospam@nospam");		}			// call FinishAccount() and not onFinish(), since the "finish"		// button may be disabled		FinishAccount();	}	else {		// since this is not an invalid account		// really cancel if the user hits the "cancel" button    	window.close();	}}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/b4d26b6ac1922b5b3aab2104e7d5f62768a09a27/AccountWizard.js/clean/mailnews/base/prefs/resources/content/AccountWizard.js