зеркало из https://github.com/mozilla/gecko-dev.git
Bug 172094 - Focus window just prior to loading a URL in it.
ChatZilla only. r=silver@warwickcompsoc.co.uk p=gk1987@gmail.com (Gijs "Hannibal" Kruitbosch)
This commit is contained in:
Родитель
f08f29f7a6
Коммит
fbde966392
|
@ -1668,6 +1668,7 @@ function cmdGotoURL(e)
|
|||
return;
|
||||
}
|
||||
|
||||
window.focus();
|
||||
if (e.command.name == "goto-url-newtab")
|
||||
{
|
||||
window.openNewTabWith(e.url, false, false);
|
||||
|
@ -1679,6 +1680,7 @@ function cmdGotoURL(e)
|
|||
{
|
||||
// don't replace chatzilla running in a tab
|
||||
openTopWin(e.url);
|
||||
return;
|
||||
}
|
||||
|
||||
location.href = e.url;
|
||||
|
|
Загрузка…
Ссылка в новой задаче