rem: try { var DocCharset = appCore.GetDocumentCharset(); charsetArg = "charset="+DocCharset; dump("*** Current document charset: " + DocCharset + "\n"); window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg); } 
add: try { var DocCharset = appCore.GetDocumentCharset(); charsetArg = "charset="+DocCharset; dump("*** Current document charset: " + DocCharset + "\n"); window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg); } 
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 (appCore != null) {             try {            var DocCharset = appCore.GetDocumentCharset();            charsetArg = "charset="+DocCharset;            dump("*** Current document charset: " + DocCharset + "\n");             window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg);     }        catch(ex) {            dump("*** failed to read document charset \n");       }  }   window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage); }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ceaef62f27b3923f4d0fe586565b08c42746dc64/tasksOverlay.js/clean/xpfe/global/resources/content/tasksOverlay.js