зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
72f7228397
Коммит
2cdccd4952
|
@ -154,7 +154,11 @@ function loadXURL(key)
|
|||
{
|
||||
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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче