fix for 139814- Search the Web menu item should open page only in browser and not in any window with content area;r=law;sr=bienvenu

This commit is contained in:
[email protected] committed 2002-06-03 20:53:23 +00:00
1 parent 4e77d3a167
commit 140627539a
1 file changed
+4 -1
@@ -155,7 +155,10 @@ function loadXURL(key)
debug_dump("loadXURL call with " + key + "\n");
var url = xlateURL(key);
if (window._content)
//check to see if this is a browser window before opening.
var winType = document.documentElement.getAttribute("windowtype");
if (window._content && winType == "navigator:browser")
window._content.location.href = url;
else
window.open(url); // on mac, there maybe no open windows: see bug 83329