зеркало из https://github.com/mozilla/pjs.git
Bug 614979 - Flash plugin crashes because we don't destroy the plugin window right after NPP_Destroy, which means that messages are being delivered and causing async messages to be queued after NPP_Destroy. Destroy the window earlier, r=jimm a=blocker
This commit is contained in:
Родитель
712afe67fa
Коммит
bebb89ae64
|
@ -178,7 +178,7 @@ PluginInstanceChild::PluginInstanceChild(const NPPluginFuncs* aPluginIface)
|
|||
PluginInstanceChild::~PluginInstanceChild()
|
||||
{
|
||||
#if defined(OS_WIN)
|
||||
DestroyPluginWindow();
|
||||
NS_ASSERTION(!mPluginWindowHWND, "Destroying PluginInstanceChild without NPP_Destroy?");
|
||||
#endif
|
||||
#if defined(OS_MACOSX)
|
||||
if (mShColorSpace) {
|
||||
|
@ -3000,6 +3000,7 @@ PluginInstanceChild::AnswerNPP_Destroy(NPError* aResult)
|
|||
SharedSurfaceRelease();
|
||||
DestroyWinlessPopupSurrogate();
|
||||
UnhookWinlessFlashThrottle();
|
||||
DestroyPluginWindow();
|
||||
#endif
|
||||
|
||||
// Pending async calls are discarded, not delivered. This matches the
|
||||
|
|
Загрузка…
Ссылка в новой задаче