rem: window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg); 
add: window.openDialog("chrome: 
context: function OpenBrowserWindow(){  var charsetArg = new String();  var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser'];  handler = handler.getService();  handler = handler.QueryInterface(Components.interfaces.nsICmdLineHandler);  var startpage = handler.defaultArgs;  var url = handler.chromeUrlForTask;  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(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg);  }  else // forget about the charset information.  {    window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f3dd951f94532dd56e9579ea78471a34b6d33aca/browser.js/buggy/browser/base/content/browser.js