mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1363472 - Ensure not sending wyciwyg constructor when shutting down, r=valentin
This commit is contained in:
parent
f815a0af4b
commit
d9ef6fd797
@ -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…
Reference in New Issue
Block a user