add:   var url_bar = document.getElementById("urlbar"); if ( url_bar ) url_bar.focus(); 
context: function Startup()  {    window.XULBrowserWindow = new nsXULBrowserWindow();    //  TileWindow();    // Make sure window fits on screen initially    //FitToScreen();	    // Create the browser instance component.    createBrowserInstance();    if (appCore == null) {        // Give up.        window.close();    }    // Initialize browser instance..    appCore.setWebShellWindow(window);        tryToSetContentWindow();	    // Add a capturing event listener to the content area    // (rjc note: not the entire window, otherwise we'll get sidebar pane loads too!)    //  so we'll be notified when onloads complete.    var contentArea = document.getElementById("appcontent");    if (contentArea)    {	    contentArea.addEventListener("load", UpdateBookmarksLastVisitedDate, true);	    contentArea.addEventListener("load", UpdateInternetSearchResults, true);    }	 // Check for window.arguments[0].  If present, go to that url.    if ( window.arguments && window.arguments[0] ) {        // Load it using yet another psuedo-onload handler.        onLoadViaOpenDialog();    }  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/732901f6d99a91f325128673e7e73e03156ffb4b/navigator.js/buggy/suite/browser/navigator.js