зеркало из https://github.com/mozilla/gecko-dev.git
Bug 983910 - Set mParentListener for HttpChannelParent objects created after HTTP redirects r=jduell
This commit is contained in:
Родитель
6f60fb4cf1
Коммит
6145b26592
|
@ -588,6 +588,10 @@ HttpChannelParent::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext)
|
|||
chan->GetCacheToken(getter_AddRefs(cacheEntry));
|
||||
mCacheEntry = do_QueryInterface(cacheEntry);
|
||||
|
||||
if (!mParentListener) {
|
||||
mParentListener = chan->GetListener().downcast<HttpChannelParentListener>();
|
||||
MOZ_ASSERT(mParentListener);
|
||||
}
|
||||
|
||||
nsCString secInfoSerialization;
|
||||
nsCOMPtr<nsISupports> secInfoSupp;
|
||||
|
|
|
@ -185,6 +185,10 @@ public: /* internal necko use only */
|
|||
|
||||
void ForcePending(bool aForcePending);
|
||||
|
||||
already_AddRefed<nsIStreamListener> GetListener() {
|
||||
return nsCOMPtr<nsIStreamListener>(mListener).forget();
|
||||
}
|
||||
|
||||
private:
|
||||
typedef nsresult (nsHttpChannel::*nsContinueRedirectionFunc)(nsresult result);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче