rem: var DocCharset = window.content.document.characterSet; 
add: var DocCharset = window._content.document.characterSet; 
context: function OpenBrowserWindow(){  dump("In OpenBrowserWindw()...\n");  var charsetArg = new String();  var handler = Components.classes['component://netscape/commandlinehandler/general-startup-browser'];  handler = handler.getService();  handler = handler.QueryInterface(Components.interfaces.nsICmdLineHandler);  var startpage = handler.defaultArgs;  var url = handler.chromeUrlForTask;  // if and only if the current window is a browser window and it has a document with a character  // set, then extract the current charset menu setting from the current document and use it to  // initialize the new browser window...  if (window && (window.windowtype == "navigator:browser") && window.content && window.content.document)  {    var DocCharset = window.content.document.characterSet;    charsetArg = "charset="+DocCharset;    dump("*** Current document charset: " + DocCharset + "\n");    //we should "inherit" the charset menu setting in a new window    window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg);  }  else // forget about the charset information.  {    window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/03ea82871ae0d2b0e52e9f402c89829c8a4feb6a/tasksOverlay.js/buggy/xpfe/communicator/resources/content/tasksOverlay.js