Partly fix test bustage from bug 532751: set mShutdown before notifying the nsNPAPIPlugin, so that it doesn't re-enter IPC methods.

This commit is contained in:
Benjamin Smedberg 2009-12-04 18:41:56 -05:00
parent 8ba8e5aaab
commit 5035b52067

View File

@ -98,9 +98,10 @@ PluginModuleParent::ActorDestroy(ActorDestroyReason why)
{
switch (why) {
case AbnormalShutdown:
mShutdown = true;
if (mPlugin)
mPlugin->PluginCrashed();
// FALL THROUGH
break;
case NormalShutdown:
mShutdown = true;