rem: pref = Components.classes['@mozilla.org/preferences;1']; 
add: pref = Components.classes['@mozilla.org/preferences-service;1']; 
context: function SelectDetectors( event )  {   uri =  event.target.getAttribute("id");   debug(uri + "\n");   pref = Components.classes['@mozilla.org/preferences;1'];   prefvalue = uri.substring(                     'urn:mozilla-registry:key:/software/netscape/intl/charsetdetector/'.length                     ,uri.length);   if("off" == prefvalue) { // "off" is special value to turn off the detectors      prefvalue = "";   }   debug(prefvalue + "\n");   // if all else fails, use trusty "about:blank" as the start page   if (pref) {        debug("get pref\n");        pref = pref.getService();        pref = pref.QueryInterface(Components.interfaces.nsIPref);   }   if (pref) {       debug("get pref 2\n");       pref.SetCharPref("intl.charset.detector", prefvalue);       window._content.location.reload();   }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/faf03ce445712b372523f881cc3144cfadc7a611/charsetDetectorsOverlay.js/buggy/xpfe/global/resources/content/charsetDetectorsOverlay.js