Open a new window if one isn't around when users select the

``Search the Web'' menu item from the ``Search'' menu.
b=83329; r=morse; sr=sfraser
This commit is contained in:
sgehani%netscape.com 2001-11-30 00:30:22 +00:00
Родитель 72f7228397
Коммит 2cdccd4952
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -152,9 +152,13 @@ function xlateURL(key)
function loadXURL(key) function loadXURL(key)
{ {
debug_dump("loadXURL call with " + key + "\n"); debug_dump("loadXURL call with " + key + "\n");
window._content.location.href = xlateURL(key); var url = xlateURL(key);
if (window._content)
window._content.location.href = url;
else
window.open(url); // on mac, there maybe no open windows: see bug 83329
} }
loadDS(); loadDS();