rem:  if (browserWin) { 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; } 
add:   var startpage = browserWin ? null : 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 url = handler.chromeUrlForTask;  var wintype = document.documentElement.getAttribute('windowtype');  var startpage;  var windowMediator = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);  var browserWin = windowMediator.getMostRecentWindow("navigator:browser");   // if a browser window already exists then check pref for how new window should be opened  if (browserWin)  {    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;  }  // 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cfae2cbd806caf592c3e8ae5ec0bc0e5335369cf/tasksOverlay.js/clean/xpfe/communicator/resources/content/tasksOverlay.js