зеркало из https://github.com/mozilla/pjs.git
chatzilla only.
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:
Родитель
3ef3871a77
Коммит
b953ac7908
|
@ -107,15 +107,16 @@ 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");
|
||||
|
||||
/*
|
||||
dump ("ircLoader.handleContent (" + aContentType + ", " +
|
||||
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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче