rem: if (prefInt) { prefInt.SetCharPref(pref_string_title, pref_string_content); window.close(); 
add: if (prefBranch) { pref_string_object.data = pref_string_content; prefBranch.setComplexValue(pref_string_title, Components.interfaces.nsIPrefLocalizedString, pref_string_object); 
context: function Save(){  // Iterate through the 'active charsets  tree to collect the charsets  // that the user has chosen.  var active_charsets = document.getElementById('active_charsets');  var charsetid    = "";  var num_charsets = 0;  var pref_string_content = '';  for (var item = active_charsets.firstChild; item != null; item = item.nextSibling) {    charsetid = item.id;    if (charsetid.length > 1) {      num_charsets++;      //separate >1 charsets by commas      if (num_charsets > 1)        pref_string_content = pref_string_content + ", " + charsetid;      else        pref_string_content = charsetid;    }  }  try  {    if (prefInt) {      prefInt.SetCharPref(pref_string_title, pref_string_content);      window.close();    }  }  catch(ex) {    confirm('exception' + ex);  }  return true;} //Save
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c5cf4cc2ac34c567e38a272d91bc38772e3475bc/pref-charset.js/buggy/suite/common/pref/pref-charset.js