Bug 1367150 - Do not attempt to create PresentationChild if ContentChild is shutting down. r=ehsan

This commit is contained in:
Andrew Osmond 2017-05-25 06:43:59 -04:00
parent 87d56c60b3
commit aa39ee6f8c

View file

@ -35,7 +35,7 @@ NS_IMPL_ISUPPORTS(PresentationIPCService,
PresentationIPCService::PresentationIPCService()
{
ContentChild* contentChild = ContentChild::GetSingleton();
if (NS_WARN_IF(!contentChild)) {
if (NS_WARN_IF(!contentChild || contentChild->IsShuttingDown())) {
return;
}
sPresentationChild = new PresentationChild(this);