Bug 1277582 - Check if TabChild is still available before calling SendPHttpChannelConstructor. r=billm

MozReview-Commit-ID: 5XH3cYkbUd1
This commit is contained in:
Valentin Gosu 2016-07-15 03:32:20 +03:00
Родитель 71ac49183e
Коммит 3d1c76ef59
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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;
}