mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1363472 - Ensure that the wyciwyg constructor isn't sent when shutting down. r=valentin
This commit is contained in:
parent
2ce869a458
commit
d30acfedb7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user