fix for regression bug #201652, caused by my fix for bug #199360

when opening a link in an existing browser window, focus it
to bring it to front, or if minimized, to show it.
r/sr=bryner, a=sspitzer
This commit is contained in:
sspitzer%netscape.com 2006-07-29 05:42:07 +00:00
parent 1585c98d26
commit 69934e9004

View File

@ -108,8 +108,10 @@ function openTopBrowserWith(url)
var browserWin = windowMediator.getMostRecentWindow("navigator:browser");
// if there's an existing browser window, open this url in one
if (browserWin)
if (browserWin) {
browserWin.getBrowser().loadURI(url); // Just do a normal load.
browserWin.focus();
}
else
window.openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", url, null, null);
}