зеркало из https://github.com/mozilla/gecko-dev.git
fix for 108347; Crash (linux/unix only) after NPP_SetWindow() call into flash plugin with window->width[height] <= 0; r=peterl; sr/a=blizzard
This commit is contained in:
Родитель
a4d57c5183
Коммит
63620c0bd5
|
@ -886,6 +886,10 @@ NS_IMETHODIMP ns4xPluginInstance::SetWindow(nsPluginWindow* window)
|
|||
NPError error;
|
||||
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
// bug 108337, flash plugin on linux doesn't like window->width <= 0
|
||||
if ((PRInt32) window->width <= 0 || (PRInt32) window->height <= 0)
|
||||
return NS_OK;
|
||||
|
||||
// Allocate and fill out the ws_info data
|
||||
if (!window->ws_info) {
|
||||
#ifdef NS_DEBUG
|
||||
|
|
Загрузка…
Ссылка в новой задаче