Bug 1622490 - Don't finish loading a multipart response in HttpChannelChild during OnStopRequest, since we should rely on OnAfterLastPart being called for this. r=mayhemer

Differential Revision: https://phabricator.services.mozilla.com/D70660

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2020-04-14 15:46:09 +00:00
Родитель 8405eb241d
Коммит fe8d230a3c
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1130,9 +1130,9 @@ void HttpChannelChild::OnStopRequest(
return;
}
// If we're a multi-part stream, and this wasn't the last part, then don't
// cleanup yet, as we're expecting more parts.
if (mMultiPartID && !mIsLastPartOfMultiPart) {
// If we're a multi-part stream, then don't cleanup yet, and we'll do so
// in OnAfterLastPart.
if (mMultiPartID) {
LOG(
("HttpChannelChild::OnStopRequest - Expecting future parts on a "
"multipart channel"
@ -1252,9 +1252,9 @@ void HttpChannelChild::DoOnStopRequest(nsIRequest* aRequest,
}
mOnStopRequestCalled = true;
// If we're a multi-part stream, and this wasn't the last part, then don't
// cleanup yet, as we're expecting more parts.
if (mMultiPartID && !mIsLastPartOfMultiPart) {
// If we're a multi-part stream, then don't cleanup yet, and we'll do so
// in OnAfterLastPart.
if (mMultiPartID) {
LOG(
("HttpChannelChild::DoOnStopRequest - Expecting future parts on a "
"multipart channel"