checking bbaetz's patch for bug 89500 "SOCKS: only http|https re-directted in (post Mozilla 0.9.2)"
patch=bbaetz, r=dougt, sr=darin git-svn-id: svn://10.0.0.236/trunk@102859 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -43,7 +43,9 @@ nsDateTimeHandler::nsDateTimeHandler() {
|
||||
nsDateTimeHandler::~nsDateTimeHandler() {
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsDateTimeHandler, nsIProtocolHandler)
|
||||
NS_IMPL_ISUPPORTS2(nsDateTimeHandler,
|
||||
nsIProtocolHandler,
|
||||
nsIProxiedProtocolHandler)
|
||||
|
||||
NS_METHOD
|
||||
nsDateTimeHandler::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult) {
|
||||
@@ -74,8 +76,8 @@ nsDateTimeHandler::GetDefaultPort(PRInt32 *result) {
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDateTimeHandler::GetURIType(PRInt16 *result) {
|
||||
*result = URI_NORELATIVE | URI_NOAUTH;
|
||||
nsDateTimeHandler::GetProtocolFlags(PRUint32 *result) {
|
||||
*result = URI_NORELATIVE | URI_NOAUTH | ALLOWS_PROXY;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -104,6 +106,13 @@ nsDateTimeHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDateTimeHandler::NewChannel(nsIURI* url, nsIChannel* *result)
|
||||
{
|
||||
return NewProxiedChannel(url, nsnull, result);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDateTimeHandler::NewProxiedChannel(nsIURI* url, nsIProxyInfo* proxyInfo,
|
||||
nsIChannel* *result)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
@@ -111,7 +120,7 @@ nsDateTimeHandler::NewChannel(nsIURI* url, nsIChannel* *result)
|
||||
rv = nsDateTimeChannel::Create(nsnull, NS_GET_IID(nsIChannel), (void**)&channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = channel->Init(url);
|
||||
rv = channel->Init(url, proxyInfo);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user