rem: var profName = wizardManager.WSM.PageData["newProfile1_2"].ProfileName.value; var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.value; var profLang = wizardManager.WSM.PageData["newProfile1_2"].ProfileLanguage.value; var profRegion = wizardManager.WSM.PageData["newProfile1_2"].ProfileRegion.value; 
add:  if (window.opener)  window.opener.CreateProfile(profileName, gProfileRoot); else  gProfile.currentProfile = profileName; 
context: function onFinish(){  // check if we're at final stage   if( !wizardManager.wizardMap[wizardManager.currentPageTag].finish )    return;  var tag =  wizardManager.WSM.GetTagFromURL( wizardManager.content_frame.src, "/", ".xul" );  wizardManager.WSM.SavePageData( tag, null, null, null );  var profName = wizardManager.WSM.PageData["newProfile1_2"].ProfileName.value;  var profDir = wizardManager.WSM.PageData["newProfile1_2"].ProfileDir.value;  var profLang = wizardManager.WSM.PageData["newProfile1_2"].ProfileLanguage.value;  var profRegion = wizardManager.WSM.PageData["newProfile1_2"].ProfileRegion.value;  // Get & select langcode  var proceed = processCreateProfileData(profName, profDir, profLang, profRegion);     if( proceed ) {    if( window.opener ) {      window.opener.CreateProfile(profName, profDir);    }    else {      profile.currentProfile = profName;    }    window.close();  }  else    return;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a2117844971366e3508a3d2430352b07dbbd62cc/createProfileWizard.js/clean/profile/resources/content/createProfileWizard.js