mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fix for 102598, CTRL+T tabs should focus URL bar after opening. r=kerz, sr=hyatt, patch externally contributed.
This commit is contained in:
parent
2b0eb53ec4
commit
d1a7f68f70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user