rem: var prefs = Components.classes["@mozilla.org/preferences;1"] 
add: var prefs = Components.classes["@mozilla.org/preferences-service;1"] 
context: function SetFiles(){  var prefs = Components.classes["@mozilla.org/preferences;1"]                .getService(Components.interfaces.nsIPrefBranch);  try  {    SetFile("filePassword", prefs.getCharPref("signon.SignonFileName"));    SetFile("fileWallet", prefs.getCharPref("wallet.SchemaValueFileName"));  } catch (e) {}  // disable the nodes which are still invalid  var children = E("filesList").childNodes;  for (var i = 0; i < children.length; i++)  {    var checkbox = children[i];    if (!("getAttribute" in checkbox) ||        checkbox.getAttribute("type") != "checkbox")      continue;    if (checkbox.getAttribute("filename") == "")      checkbox.disabled = true;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2858f627ea12d54839f28e9c14758aa80a36e16e/files.js/clean/extensions/sroaming/resources/content/prefs/files.js