From 3d1c76ef599d92fb51a4e19f23cd18fefd06c129 Mon Sep 17 00:00:00 2001 From: Valentin Gosu Date: Fri, 15 Jul 2016 03:32:20 +0300 Subject: [PATCH] Bug 1277582 - Check if TabChild is still available before calling SendPHttpChannelConstructor. r=billm MozReview-Commit-ID: 5XH3cYkbUd1 --- netwerk/protocol/http/HttpChannelChild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index 8523c511179f..7f2d08449a19 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -1447,7 +1447,7 @@ HttpChannelChild::ConnectParent(uint32_t registrarId) return NS_ERROR_ILLEGAL_VALUE; } - if (tabChild && tabChild->IsDestroyed()) { + if (tabChild && !tabChild->IPCOpen()) { return NS_ERROR_FAILURE; } @@ -1969,7 +1969,7 @@ HttpChannelChild::ContinueAsyncOpen() mChannelId.ToProvidedString(chid); openArgs.channelId().AssignASCII(chid); - if (tabChild && tabChild->IsDestroyed()) { + if (tabChild && !tabChild->IPCOpen()) { return NS_ERROR_FAILURE; }