add: var startpage;   if (wintype == "navigator:browser") { try { switch ( pref.getIntPref("browser.windows.loadOnNewWindow") ) { case -1: startpage = handler.defaultArgs; break; default: startpage = "about:blank"; break; case 1: startpage = getHomePage().join("\n"); break; case 2: startpage = getWebNavigation().currentURI.spec; break; } } catch(e) { startpage = "about:blank"; } } else { startpage = handler.defaultArgs; } 
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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8b2b0cfe7e2dbd2750416fc02965dea83b8514d9/tasksOverlay.js/buggy/suite/common/tasksOverlay.js