diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index c58ee15b87e..fd936283a3b 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -1855,6 +1855,14 @@ ContentChild::ActorDestroy(ActorDestroyReason why) } mIsAlive = false; +#ifdef MOZ_NUWA_PROCESS + if (IsNuwaProcess()) { + // The Nuwa cannot go through the full XPCOM shutdown path or deadlock + // will result. + QuickExit(); + } +#endif + XRE_ShutdownChildProcess(); }