rem: var pref = Components.classes['component: 
add: var pref = Components.classes['@mozilla.org/preferences;1']; 
context: function ComposerSelectDetector(event){    //dump("Charset Detector menu item pressed: " + event.target.getAttribute('id') + "\n");    var uri =  event.target.getAttribute("id");    var prefvalue = uri.substring('chardet.'.length, uri.length);    if("off" == prefvalue) { // "off" is special value to turn off the detectors        prefvalue = "";    }    var pref = Components.classes['component://netscape/preferences'];    if (pref) {        pref = pref.getService();        pref = pref.QueryInterface(Components.interfaces.nsIPref);    }    if (pref) {        pref.SetCharPref("intl.charset.detector", prefvalue);          editorShell.LoadUrl(editorShell.editorDocument.location);        }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6cc70ebd6c97bd0b2fe48c31f579e855387ced9d/charsetOverlay.js/clean/xpfe/global/resources/content/charsetOverlay.js