diff --git a/xul/content/commands.js b/xul/content/commands.js
--- a/xul/content/commands.js
+++ b/xul/content/commands.js
@@ -2228,17 +2228,17 @@ function cmdGotoURL(e)
var location = browserWin ? browserWin.gBrowser.currentURI.spec : null;
var action = e.command.name;
// 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)))
+ (location.indexOf("chrome://chatzilla/content/") == 0)))
{
try
{
if (typeof openUILinkIn == "function")
openUILinkIn(e.url, "window");
else
openTopWin(e.url);
}
diff --git a/xul/content/contents.rdf b/xul/content/contents.rdf
--- a/xul/content/contents.rdf
+++ b/xul/content/contents.rdf
@@ -8,17 +8,17 @@