зеркало из https://github.com/mozilla/gecko-dev.git
Added an if check around the call out through the event sink...
This commit is contained in:
Родитель
ce2c24bc6a
Коммит
53ea579cb6
|
@ -281,7 +281,9 @@ nsresult nsHTTPResponseListener::FireOnHeadersAvailable(nsISupports* aContext)
|
|||
// Notify the event sink that response headers are available...
|
||||
nsIHTTPEventSink* pSink= nsnull;
|
||||
m_pConnection->GetEventSink(&pSink);
|
||||
pSink->OnHeadersAvailable(aContext);
|
||||
if (pSink) {
|
||||
pSink->OnHeadersAvailable(aContext);
|
||||
}
|
||||
|
||||
// Check for any modules that want to receive headers once they've arrived.
|
||||
NS_WITH_SERVICE(nsINetModuleMgr, pNetModuleMgr, kNetModuleMgrCID, &rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче