Bug 1363472 - Ensure not sending wyciwyg constructor when shutting down, r=valentin

This commit is contained in:
Junior Hsu 2017-05-09 23:57:00 +02:00
parent f815a0af4b
commit d9ef6fd797

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)