зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
eae0a4d1cb
Коммит
db6a7106b7
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче