зеркало из https://github.com/mozilla/gecko-dev.git
Temporary implementation of AsyncRead(...). Fixed some ref-counting bugs with the NS_WITH_SERVICE macro...
This commit is contained in:
Родитель
cd90ffe1f2
Коммит
4158178158
|
@ -172,7 +172,7 @@ nsHTTPChannel::AsyncRead(PRUint32 startPosition, PRInt32 readCount,
|
|||
nsIEventQueue *eventQueue,
|
||||
nsIStreamListener *listener)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
return Open();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -313,7 +313,6 @@ nsHTTPChannel::Open(void)
|
|||
|
||||
nsISimpleEnumerator* pModules = nsnull;
|
||||
rv = pNetModuleMgr->EnumerateModules("http-request", &pModules);
|
||||
NS_RELEASE(pNetModuleMgr);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsIProxyObjectManager* proxyObjectManager = nsnull;
|
||||
|
|
|
@ -183,7 +183,6 @@ nsHTTPResponseListener::OnDataAvailable(nsISupports* context,
|
|||
|
||||
nsISimpleEnumerator* pModules = nsnull;
|
||||
rv = pNetModuleMgr->EnumerateModules("http-response", &pModules);
|
||||
NS_RELEASE(pNetModuleMgr);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsIProxyObjectManager* proxyObjectManager = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче