rem: var profileLock = profile.lock(); 
add: var profileLock = profile.lock(null); 
context: function onFinish() {  var profileName = document.getElementById("profileName").value;  var profile;  // Create profile named profileName in profileRoot.  try {    profile = gProfileService.createProfile(gProfileRoot, profileName);  }  catch (e) {    var profileCreationFailed =      gProfileManagerBundle.getString("profileCreationFailed");    var profileCreationFailedTitle =      gProfileManagerBundle.getString("profileCreationFailedTitle");    var promptService = C["@mozilla.org/embedcomp/prompt-service;1"].      getService(I.nsIPromptService);    promptService.alert(window, profileCreationFailedTitle,                        profileCreationFailed + "\n" + e);    return false;  }  // window.opener is false if the Create Profile Wizard was opened from the  // command line.  if (window.opener) {    // Add new profile to the list in the Profile Manager.    window.opener.CreateProfile(profile);  }  else {    // Use the newly created Profile.    var profileLock = profile.lock();    var dialogParams = window.arguments[0].QueryInterface(I.nsIDialogParamBlock);    dialogParams.objects.insertElementAt(profileLock, 0, false);  }  // Exit the wizard.  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c266bbcbdde565c4bbb59f82b20bfd4c4e940457/createProfileWizard.js/buggy/toolkit/profile/content/createProfileWizard.js