rem: var menu = Components.classes['component: 
add: var menu = Components.classes['@mozilla.org/rdf/datasource;1?name=charset-menu']; 
context: function charsetLoadListener (event){    var menu = Components.classes['component://netscape/rdf/datasource?name=charset-menu'];    if (menu) {        menu = menu.getService();        menu = menu.QueryInterface(Components.interfaces.nsICurrentCharsetListener);    }    var charset = window._content.document.characterSet;    if (menu) {        menu.SetCurrentCharset(charset);    }    // XXX you know, here I could also set the checkmark, for the case when a     // doc finishes loading after the menu is already diplayed. But I get a    // weird assertion!}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0257791053c2b38e1dfaf2ee11afae973e82e394/charsetOverlay.js/buggy/xpfe/global/resources/content/charsetOverlay.js