зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1264566 - Part 3: Release upload stream after request complete. r=valentin
MozReview-Commit-ID: 5r1fEkOy9vU --HG-- extra : transplant_source : %1Dc6%99%3F%5C%81%F6%FDu%FD%C0l%B8-%CD%AF%BBx%01 extra : histedit_source : b407a427fa4cd3fedfd71f7d7f56958fce1099ca
This commit is contained in:
Родитель
fd87664d8e
Коммит
eab2098c99
|
@ -864,6 +864,8 @@ HttpChannelChild::OnStopRequest(const nsresult& channelStatus,
|
|||
LOG(("HttpChannelChild::OnStopRequest [this=%p status=%x]\n",
|
||||
this, channelStatus));
|
||||
|
||||
mUploadStream = nullptr;
|
||||
|
||||
if (mDivertingToParent) {
|
||||
MOZ_RELEASE_ASSERT(!mFlushedForDiversion,
|
||||
"Should not be processing any more callbacks from parent!");
|
||||
|
|
|
@ -6341,6 +6341,8 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
|
|||
MOZ_ASSERT(NS_IsMainThread(),
|
||||
"OnStopRequest should only be called from the main thread");
|
||||
|
||||
mUploadStream = nullptr;
|
||||
|
||||
if (NS_FAILED(status)) {
|
||||
ProcessSecurityReport(status);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче