Bug 880037: Don't try to mark message managers when we're not in the root process r=jlebar

This commit is contained in:
David Zbarsky 2013-06-07 14:05:36 -07:00
parent a772126bdd
commit 31ba17013e

View File

@ -94,6 +94,10 @@ MarkUserDataHandler(void* aNode, nsIAtom* aKey, void* aValue, void* aData)
static void
MarkMessageManagers()
{
// The global message manager only exists in the root process.
if (XRE_GetProcessType() != GeckoProcessType_Default) {
return;
}
nsCOMPtr<nsIMessageBroadcaster> strongGlobalMM =
do_GetService("@mozilla.org/globalmessagemanager;1");
if (!strongGlobalMM) {