diff --git a/xul/content/commands.js b/xul/content/commands.js --- a/xul/content/commands.js +++ b/xul/content/commands.js @@ -2253,8 +2253,10 @@ return; } + var browserWin; + if (client.host == "Songbird") - var browserWin = getWindowByType("Songbird:Main"); + browserWin = getWindowByType("Songbird:Main"); else browserWin = getWindowByType("navigator:browser"); @@ -2263,6 +2265,8 @@ // We don't want to replace ChatZilla running in a tab. if ((action == "goto-url-newwin") || + ((action == "goto-url-newtab") && !browserWin) || + ((action == "goto-url") && !browserWin) || ((action == "goto-url") && browserWin && (location.href.indexOf("chrome://chatzilla/content/") == 0))) {