r=samuel@sieb.net, rs=brendan@mozilla.org, a=asa@mozilla.org

- Add stub allowPort method.
- Fix signature for handleContent method, bug 80993
This commit is contained in:
rginda%netscape.com 2001-06-07 00:48:03 +00:00
Родитель 3ef3871a77
Коммит b953ac7908
1 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -107,14 +107,15 @@ function (iid) {
}
IRCContentHandler.prototype.handleContent =
function (aContentType, aCommand, aWindowTarget, aSourceContext, aRequest)
function (aContentType, aCommand, aWindowTarget, aRequest)
{
var e;
var channel = aRequest.QueryInterface(nsIChannel);
/*
dump ("ircLoader.handleContent (" + aContentType + ", " +
aCommand + ", " + aWindowTarget + ", " + aSourceContext + ", " +
channel.URI.spec + ")\n");
aCommand + ", " + aWindowTarget + ", " + channel.URI.spec + ")\n");
*/
var windowManager =
Components.classes[MEDIATOR_CONTRACTID].getService(nsIWindowMediator);
@ -160,6 +161,12 @@ function IRCProtocolHandler()
IRCProtocolHandler.prototype.scheme = "irc";
IRCProtocolHandler.prototype.defaultPort = 6667;
IRCProtocolHandler.prototype.allowPort =
function (aPort, aScheme)
{
return false;
}
IRCProtocolHandler.prototype.newURI =
function (aSpec, aBaseURI)
{