From 772b3853823fe251921599c79327a226b94b726c Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Fri, 8 Oct 2010 15:12:40 -0400 Subject: [PATCH] Bug 594847 - Handle content-process crashes more gracefully (platform patch) [r=cjones a=blocking-fennec] --- dom/ipc/ContentParent.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 70be584826e..168f84411ae 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -130,6 +130,13 @@ ContentParent::ActorDestroy(ActorDestroyReason why) mRunToCompletionDepth = 0; mIsAlive = false; + + if (obs) { + nsString context = NS_LITERAL_STRING(""); + if (AbnormalShutdown == why) + context.AssignLiteral("abnormal"); + obs->NotifyObservers(nsnull, "ipc:content-shutdown", context.get()); + } } TabParent*