rem: if (prefvalue == "") prefvalue = "off"; dump("intl.charset.detector = "+ prefvalue + "\n"); 
add: } catch (ex) { prefvalue = ""; 
context: function UpdateCharsetDetector(){    var pref = Components.classes['@mozilla.org/preferences-service;1'];    if (pref) {        pref = pref.getService();        pref = pref.QueryInterface(Components.interfaces.nsIPrefBranch);    }     if (pref) {        prefvalue = pref.getComplexValue("intl.charset.detector",                                         Components.interfaces.nsIPrefLocalizedString).data;        if (prefvalue == "") prefvalue = "off";        dump("intl.charset.detector = "+ prefvalue + "\n");    }    var prefvalue = 'chardet.' + prefvalue;    var menuitem = document.getElementById(prefvalue);    if (menuitem) {        menuitem.setAttribute('checked', 'true');    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e363d9a25fd5aafe08288cb900cd765dc839b041/charsetOverlay.js/buggy/xpfe/global/resources/content/charsetOverlay.js