Bug 1363472 - Ensure that the wyciwyg constructor isn't sent when shutting down. r=valentin

This commit is contained in:
Junior Hsu 2017-05-09 23:57:00 -04:00
parent 2ce869a458
commit d30acfedb7

View File

@ -92,6 +92,11 @@ nsWyciwygProtocolHandler::NewChannel2(nsIURI* url,
if (IsNeckoChild()) {
NS_ENSURE_TRUE(gNeckoChild != nullptr, NS_ERROR_FAILURE);
ContentChild* cc = static_cast<ContentChild*>(gNeckoChild->Manager());
if (cc->IsShuttingDown()) {
return NS_ERROR_FAILURE;
}
WyciwygChannelChild *wcc = static_cast<WyciwygChannelChild *>(
gNeckoChild->SendPWyciwygChannelConstructor());
if (!wcc)