rem: var pref = Components.classes['component: pref = pref.QueryInterface(Components.interfaces.nsIPref);  
add: var pref = Components.classes['component: if (pref) { pref = pref.getService(); } if (pref) { pref = pref.QueryInterface(Components.interfaces.nsIPref); } 
context: function Init() {  var pref = Components.classes['component://netscape/preferences'].getService();  pref = pref.QueryInterface(Components.interfaces.nsIPref);  if (pref) {    pref.SetDefaultIntPref('sidebar.width', 170);    //    pref.SetIntPref(pref.GetIntPref('sidebar.width'));    pref.SetDefaultBoolPref('sidebar.open', false);    pref.SavePrefFile();    if (pref.GetBoolPref('sidebar.open')) {      toggleOpenClose();    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a4b26e5b9de42054d6248c42c4d3a7b5ef28b009/contentframe.js/clean/xpfe/browser/src/contentframe.js