Fix for 102598, CTRL+T tabs should focus URL bar after opening. r=kerz, sr=hyatt, patch externally contributed.

This commit is contained in:
hyatt%netscape.com 2001-10-08 07:39:32 +00:00
parent 2b0eb53ec4
commit d1a7f68f70

View File

@ -779,6 +779,9 @@ function BrowserOpenTab()
.getService(Components.interfaces.nsICmdLineHandler);
var startpage = handler.defaultArgs;
gBrowser.selectedTab = gBrowser.addTab(startpage);
setTimeout("gURLBar.focus();", 0); // bug #37638 could be relevant here in the future, depending on whether we
// decide that a non-blank page should have its content
// area focused instead.
}
/* Called from the openLocation dialog. This allows that dialog to instruct