rem: var startButton = document.getElementById("ok"); var profileTree = document.getElementById("profiles"); if( startButton.getAttribute("disabled") == "true" || profileTree.selectedItems.length != 1 ) return false;  
add: var profileTree = document.getElementById("profiles"); 
context: function onStart(){  var startButton = document.getElementById("ok");  var profileTree = document.getElementById("profiles");  if( startButton.getAttribute("disabled") == "true" ||      profileTree.selectedItems.length != 1 )    return false;      var selected = profileTree.selectedItems[0];      var profilename = selected.getAttribute("profile_name");  if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {    var lString = bundle.GetStringFromName("migratebeforestart");    lString = lString.replace(/\s*<html:br\/>/g,"\n");    lString = lString.replace(/%brandShortName%/gi, brandBundle.GetStringFromName("brandShortName"));    var title = bundle.GetStringFromName("migratetitle");           if (commonDialogService.Confirm(window, title, lString))      profile.migrateProfile( profilename, true );    else      return false;  }    // start in online or offline mode  var offlineState = document.getElementById("offlineState");  var ioService = nsJSComponentManager.getServiceByID("{9ac9e770-18bc-11d3-9337-00104ba0fd40}",                                                  "nsIIOService");  ioService.offline = offlineState.checked;      try {    dump("start with profile: " + profilename + "\n");                                                            profile.startApprunner(profilename);    ExitApp();  }  catch (ex) {    //var stringA = bundle.GetStringFromName(failProfileStartA);    //var stringB = bundle.GetStringFromName(failProfileStartB);    //alert(stringA + " " + profilename + " " + stringB);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6333953f3b09131c4e5cc174befe38b66183b0be/profileSelection.js/buggy/profile/resources/content/profileSelection.js