rem: var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser'] .getService(Components.interfaces.nsICmdLineHandler); var uriToLoad = handler.defaultArgs.split("\n")[0]; if (/^\s*$/.test(uriToLoad)) 
add: var uriToLoad; try { switch ( pref.getIntPref("browser.tabs.loadOnNewTab") ) { case -1: var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser'] .getService(Components.interfaces.nsICmdLineHandler); uriToLoad = handler.defaultArgs.split("\n")[0]; if (!/\S/.test(uriToLoad)) uriToLoad = "about:blank"; break; default: uriToLoad = "about:blank"; break; case 1: uriToLoad = pref.getCharPref("browser.startup.homepage"); break; case 2: uriToLoad = getWebNavigation().currentURI.spec; break; } } catch(e) { 
context: function BrowserOpenTab(){  if (!gInPrintPreviewMode) {    var handler = Components.classes['@mozilla.org/commandlinehandler/general-startup;1?type=browser']                            .getService(Components.interfaces.nsICmdLineHandler);    var uriToLoad = handler.defaultArgs.split("\n")[0];    if (/^\s*$/.test(uriToLoad))      uriToLoad = "about:blank";    gBrowser.selectedTab = gBrowser.addTab(uriToLoad);    var navBar = document.getElementById("nav-bar");    if (uriToLoad == "about:blank" && !navBar.hidden && window.locationbar.visible)      setTimeout("gURLBar.focus();", 0);    else      setTimeout("content.focus();", 0);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e5c2e4df1292bdf3340ab355e78e856122f32189/navigator.js/clean/suite/browser/navigator.js