rem: var DocCharset = window._content.document.characterSet; 
add: var DocCharset = window.content.document.characterSet; 
context: function OpenBrowserWindow(){  var charsetArg = new String();  var handler = Components.classes["@mozilla.org/browser/clh;1"]                          .getService(Components.interfaces.nsIBrowserHandler);  var startpage = handler.startPage;  var wintype = document.firstChild.getAttribute('windowtype');  // 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 && (wintype == "navigator:browser") && window._content && window._content.document)  {    var DocCharset = window._content.document.characterSet;    charsetArg = "charset="+DocCharset;    //we should "inherit" the charset menu setting in a new window    window.openDialog("chrome://browser/content/", "_blank", "chrome,all,dialog=no", startpage, charsetArg);  }  else // forget about the charset information.  {    window.openDialog("chrome://browser/content/", "_blank", "chrome,all,dialog=no", startpage);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/674a68cf21dc40d57fb4daf94777d468932666f2/browser.js/clean/browser/base/content/browser.js