rem: var type = vals[0]; var slot = vals[1];   if (pageElements[i].localName != "button") { var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true")); setFormElementValue(pageElements[i], value); } updateElementWithKeys(account,pageElements[i],type); var isLocked = getAccountValueIsLocked(pageElements[i]); setEnabled(pageElements[i],!isLocked); 
add: if (vals.length >= 2) { var type = vals[0]; var slot = vals[1];   if (pageElements[i].localName != "button") { var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true")); setFormElementValue(pageElements[i], value); } updateElementWithKeys(account,pageElements[i],type); var isLocked = getAccountValueIsLocked(pageElements[i]); setEnabled(pageElements[i],!isLocked); } 
context: function restorePage(pageId, serverId) {  if (!serverId) return;  var accountValues = getValueArrayFor(serverId);  var pageElements = getPageFormElements();  if (pageElements == null) return;  var account = getAccountFromServerId(serverId);  if (top.frames["contentFrame"].onPreInit)    top.frames["contentFrame"].onPreInit(account, accountValues);  // restore the value from the account  for (var i=0; i<pageElements.length; i++) {      if (pageElements[i].id) {        var vals = pageElements[i].id.split(".");        var type = vals[0];        var slot = vals[1];        // buttons are lockable, but don't have any data so we skip that part.        // elements that do have data, we get the values at poke them in.        if (pageElements[i].localName != "button") {          var value = getAccountValue(account, accountValues, type, slot, pageElements[i].getAttribute("preftype"), (pageElements[i].getAttribute("genericattr") == "true"));          setFormElementValue(pageElements[i], value);        }        updateElementWithKeys(account,pageElements[i],type);        var isLocked = getAccountValueIsLocked(pageElements[i]);        setEnabled(pageElements[i],!isLocked);      }  }  // tell the page that new values have been loaded  if (top.frames["contentFrame"].onInit)      top.frames["contentFrame"].onInit();  // everything has succeeded, vervied by setting currentPageId  currentPageId = pageId;  currentServerId = serverId;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0cd2634928600ba1fd1aa18c4889432a3fb7b444/AccountManager.js/buggy/mailnews/base/prefs/resources/content/AccountManager.js