зеркало из https://github.com/mozilla/pjs.git
The doc loader should release the underlying channel once the channel issues a OnStopRequest. This allows the
channel to go away after we load the url instead of making it stick around until the next url comes in (that's when we used to get rid of the previous channel). r=rpotts.
This commit is contained in:
Родитель
cf1f75a408
Коммит
f4d75a8c84
|
@ -744,6 +744,8 @@ nsDocLoaderImpl::OnStopRequest(nsIChannel *channel, nsISupports *ctxt,
|
|||
mIsLoadingDocument = PR_FALSE;
|
||||
FireOnEndDocumentLoad(this, status);
|
||||
}
|
||||
|
||||
mDocumentChannel = null_nsCOMPtr();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -744,6 +744,8 @@ nsDocLoaderImpl::OnStopRequest(nsIChannel *channel, nsISupports *ctxt,
|
|||
mIsLoadingDocument = PR_FALSE;
|
||||
FireOnEndDocumentLoad(this, status);
|
||||
}
|
||||
|
||||
mDocumentChannel = null_nsCOMPtr();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче