rem:  if (taskOverlayAppCore != null) {  try {  var DocCharset = taskOverlayAppCore.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"); }  } else {  window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage); }  } 
add: } 
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;  var taskOverlayAppCore = null;  try {     if ((appCore != null) && (taskOverlayAppCore == null)) {       taskOverlayAppCore = appCore;    } else {       CreateTaskOverlayBrowserInstance(taskOverlayAppCore);    }  }      catch (ex) {    if (taskOverlayAppCore == null) {      CreateTaskOverlayBrowserInstance(taskOverlayAppCore);    }    }  if (taskOverlayAppCore != null) {             try       {          //let's try to extract the current charset menu setting          var DocCharset = taskOverlayAppCore.GetDocumentCharset();          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);      }        catch(ex)        {           dump("*** failed to read document charset \n");       }  } else {      //if everythig else fails, forget about the charset      window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage);  } }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a19120da964463c1e9eecc85b4e420e9f550ef68/tasksOverlay.js/clean/xpfe/global/resources/content/tasksOverlay.js