rem: var charset = window.content.document.characterSet; 
add: var charset = window._content.document.characterSet; 
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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/03ea82871ae0d2b0e52e9f402c89829c8a4feb6a/charsetOverlay.js/clean/xpfe/global/resources/content/charsetOverlay.js