fixes bug 287729 "ChatZilla can't connect on Trunk builds (as of 2005-03-25)" patch by gijskruitbosch@gmail.com r=rginda
git-svn-id: svn://10.0.0.236/trunk@171220 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b93d21192e
commit
75f853b004
@ -140,7 +140,12 @@ function bc_connect(host, port, bind, tcp_flag, isSecure, observer)
|
||||
getService(Components.interfaces.nsIIOService);
|
||||
var spec = "irc://" + host + ':' + port;
|
||||
var uri = ios.newURI(spec,null,null);
|
||||
var info = pps.examineForProxy(uri);
|
||||
// As of 2005-03-25, 'examineForProxy' was replaced by 'resolve'.
|
||||
var info = null;
|
||||
if ("resolve" in pps)
|
||||
info = pps.resolve(uri, 0);
|
||||
else if ("examineForProxy" in pps)
|
||||
info = pps.examineForProxy(uri);
|
||||
|
||||
if (jsenv.HAS_STREAM_PROVIDER)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user