rem: if(top.okCallback) { 
add: if(top.okCallback && closeWizard) { 
context: function onCancel() {  var firstInvalidAccount = getFirstInvalidAccount();  var closeWizard = true;  // 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", "user@domain.invalid");    }    // 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    if (accountCount < 1) {      var confirmMsg = gPrefsBundle.getString("cancelWizard");      var confirmTitle = gPrefsBundle.getString("accountWizard");      var result = promptService.confirmEx(window, confirmTitle, confirmMsg,        (promptService.BUTTON_TITLE_IS_STRING*promptService.BUTTON_POS_0)+        (promptService.BUTTON_TITLE_IS_STRING*promptService.BUTTON_POS_1),        gPrefsBundle.getString('WizardExit'),        gPrefsBundle.getString('WizardContinue'),         null, null, {value:0});      if (result == 1)        closeWizard = false;    }    if(top.okCallback) {      var state = false;      top.okCallback(state);    }  }  return closeWizard;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/439a8f4ec935a7bf4a663c93ce4670dfdbf2758a/AccountWizard.js/buggy/mailnews/base/prefs/resources/content/AccountWizard.js