Bug 1378281 - Take 2: Also check if the child is destroyed during ProvideWindowCommon, r=catalinb

This commit is contained in:
Michael Layzell 2017-09-01 12:04:10 -04:00
Родитель 5e623ba14f
Коммит 74165be086
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1029,7 +1029,7 @@ ContentChild::ProvideWindowCommon(TabChild* aTabOpener,
}
// If the TabChild has been torn down, we don't need to do this anymore.
if (NS_WARN_IF(!newChild->IPCOpen())) {
if (NS_WARN_IF(!newChild->IPCOpen() || newChild->IsDestroyed())) {
return NS_ERROR_ABORT;
}