зеркало из https://github.com/mozilla/gecko-dev.git
Bug 719851 - Remove Flash view on Android when plugin instance is lost r=blassey
--HG-- extra : rebase_source : 88996dc534da0bab5a4bd19104ec2f604c241c90
This commit is contained in:
Родитель
6516ccca87
Коммит
62f9590a73
|
@ -415,9 +415,14 @@ nsPluginInstanceOwner::SetInstance(nsNPAPIPluginInstance *aInstance)
|
|||
// If we're going to null out mInstance after use, be sure to call
|
||||
// mInstance->InvalidateOwner() here, since it now won't be called
|
||||
// from our destructor. This fixes bug 613376.
|
||||
if (mInstance && !aInstance)
|
||||
if (mInstance && !aInstance) {
|
||||
mInstance->InvalidateOwner();
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
RemovePluginView();
|
||||
#endif
|
||||
}
|
||||
|
||||
mInstance = aInstance;
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче