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 2006-09-14 05:59:55 +00:00
parent b02845a5b4
commit 7bc34ec2e3

View File

@ -779,6 +779,9 @@ function BrowserOpenTab()
.getService(Components.interfaces.nsICmdLineHandler); .getService(Components.interfaces.nsICmdLineHandler);
var startpage = handler.defaultArgs; var startpage = handler.defaultArgs;
gBrowser.selectedTab = gBrowser.addTab(startpage); 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 /* Called from the openLocation dialog. This allows that dialog to instruct