зеркало из https://github.com/mozilla/gecko-dev.git
NPP_SetWindow should be called after instantiating the stream bug 70686 a=av sr=waterson
This commit is contained in:
Родитель
ae512f6495
Коммит
bed1db53f7
|
@ -2608,6 +2608,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateFullPagePlugin(const char *aMimeType,
|
|||
|
||||
rv = NewFullPagePluginStream(aStreamListener, instance);
|
||||
|
||||
// If we've got a native window, the let the plugin know about it.
|
||||
if (window->window)
|
||||
instance->SetWindow(window);
|
||||
|
||||
NS_RELEASE(instance);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2608,6 +2608,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateFullPagePlugin(const char *aMimeType,
|
|||
|
||||
rv = NewFullPagePluginStream(aStreamListener, instance);
|
||||
|
||||
// If we've got a native window, the let the plugin know about it.
|
||||
if (window->window)
|
||||
instance->SetWindow(window);
|
||||
|
||||
NS_RELEASE(instance);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче