Bug 364086 - Open Link In New Window opens the link in the existing window

r=silver@warwickcompsoc.co.uk (James Ross)
ChatZilla Only.
This commit is contained in:
gijskruitbosch%gmail.com 2007-06-22 21:06:57 +00:00
Родитель 0da5203d0f
Коммит b0b9b901ae
1 изменённых файлов: 18 добавлений и 8 удалений

Просмотреть файл

@ -2244,13 +2244,6 @@ function cmdGotoURL(e)
return; return;
} }
if (e.command.name == "goto-url-newwin")
{
openTopWin(e.url);
dispatch("focus-input");
return;
}
var window = getWindowByType("navigator:browser"); var window = getWindowByType("navigator:browser");
if (!window) if (!window)
@ -2273,6 +2266,23 @@ function cmdGotoURL(e)
} }
if (e.command.name == "goto-url-newwin")
{
try
{
if (client.host == "Mozilla")
window.openNewWindowWith(e.url, false);
else
window.openNewWindowWith(e.url, null, null, null);
}
catch (ex)
{
dd(formatException(ex));
}
dispatch("focus-input");
return;
}
if (e.command.name == "goto-url-newtab") if (e.command.name == "goto-url-newtab")
{ {
try try
@ -2280,7 +2290,7 @@ function cmdGotoURL(e)
if (client.host == "Mozilla") if (client.host == "Mozilla")
window.openNewTabWith(e.url, false, false); window.openNewTabWith(e.url, false, false);
else else
window.openNewTabWith(e.url, null, null, null, null, false); window.openNewTabWith(e.url, null, null, null, null);
} }
catch (ex) catch (ex)
{ {