mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Defer the PluginCrashed notification so that we don't delete the PluginModuleParent while we're in the middle of a crash notification.
This commit is contained in:
parent
35ac1f8cd2
commit
6b8e2464c1
@ -99,8 +99,12 @@ PluginModuleParent::ActorDestroy(ActorDestroyReason why)
|
||||
switch (why) {
|
||||
case AbnormalShutdown:
|
||||
mShutdown = true;
|
||||
if (mPlugin)
|
||||
mPlugin->PluginCrashed();
|
||||
if (mPlugin) {
|
||||
nsCOMPtr<nsIRunnable> r =
|
||||
new nsRunnableMethod<nsNPAPIPlugin>(
|
||||
mPlugin, &nsNPAPIPlugin::PluginCrashed);
|
||||
NS_DispatchToMainThread(r);
|
||||
}
|
||||
break;
|
||||
|
||||
case NormalShutdown:
|
||||
|
Loading…
Reference in New Issue
Block a user