mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user