Bug 1522076 - Backed out changeset 1b6a90a3d820 a=backout

--HG--
extra : rebase_source : 6909b5d123bb23ca54d39f81e84f7fc65f02252c
This commit is contained in:
Valentin Gosu 2019-01-24 11:34:17 +02:00
Родитель 4c3c923b43
Коммит 5ccd13de0d
1 изменённых файлов: 0 добавлений и 13 удалений

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

@ -1031,10 +1031,6 @@ void HttpChannelChild::OnStopRequest(
static_cast<uint32_t>(channelStatus)));
MOZ_ASSERT(NS_IsMainThread());
if (mOnStopRequestCalled && !mIPCOpen) {
return;
}
if (mDivertingToParent) {
MOZ_RELEASE_ASSERT(
!mFlushedForDiversion,
@ -3794,15 +3790,6 @@ void HttpChannelChild::ActorDestroy(ActorDestroyReason aWhy) {
// and BackgroundChild might have pending IPC messages.
// Clean up BackgroundChild at this time to prevent memleak.
if (aWhy != Deletion) {
// The actor tree might get destroyed before we get the OnStopRequest.
// So if we didn't get it, we send it here in order to prevent any leaks.
// Ocasionally we will get the OnStopRequest message after this, in which
// case we just ignore it as we've already cleared the listener.
if (!mOnStopRequestCalled && mListener) {
DoPreOnStopRequest(NS_ERROR_ABORT);
DoOnStopRequest(this, NS_ERROR_ABORT, mListenerContext);
}
CleanupBackgroundChannel();
}
}