зеркало из https://github.com/mozilla/pjs.git
Bug 617703 - Add plugin support and prevent crash [@ libflashplayer.so@0x32884 ][@ libflashplayer.so@0x32800 ] in Fennec r=romaxa a=approval2.0
This commit is contained in:
Родитель
58099300e4
Коммит
c684dd40f4
|
@ -6289,16 +6289,9 @@ NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget(void)
|
|||
mPluginWindow->window = nsnull;
|
||||
#ifdef MOZ_X11
|
||||
// Fill in the display field.
|
||||
nsIWidget* win = mObjectFrame->GetNearestWidget();
|
||||
NPSetWindowCallbackStruct* ws_info =
|
||||
static_cast<NPSetWindowCallbackStruct*>(mPluginWindow->ws_info);
|
||||
if (win) {
|
||||
ws_info->display =
|
||||
static_cast<Display*>(win->GetNativeData(NS_NATIVE_DISPLAY));
|
||||
}
|
||||
else {
|
||||
ws_info->display = DefaultXDisplay();
|
||||
}
|
||||
ws_info->display = DefaultXDisplay();
|
||||
|
||||
nsCAutoString description;
|
||||
GetPluginDescription(description);
|
||||
|
|
Загрузка…
Ссылка в новой задаче