rem: if (window == wnd) wnd = window._content; 
add: if ((window == wnd) || (wnd == null)) wnd = window._content; 
context: function UpdateCurrentCharset(){    var wnd = document.commandDispatcher.focusedWindow;    if (window == wnd) wnd = window._content;    var charset = wnd.document.characterSet;	dump("Update current charset: " + charset + "\n");    var menuitem = document.getElementById('charset.' + charset);    if (menuitem) {        menuitem.setAttribute('checked', 'true');    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c6ee9c8192e4c286639bb7a7574619e0475b895c/charsetOverlay.js/buggy/xpfe/global/resources/content/charsetOverlay.js