Bug 1338172 part C - Remove support for windowed mode plugins on Linux (GTK). r=jimm

MozReview-Commit-ID: 5rnxozEKCwn
This commit is contained in:
Benjamin Smedberg
2017-02-09 10:05:00 -05:00
parent 8c4dc86be2
commit ce54258106
5 changed files with 15 additions and 205 deletions

View File

@@ -1105,19 +1105,20 @@ _getvalue(NPP aNPP,
*(NPBool*)aValue = PluginModuleChild::GetChrome()->Settings().isOffline();
return NPERR_NO_ERROR;
case NPNVSupportsXEmbedBool:
*(NPBool*)aValue = PluginModuleChild::GetChrome()->Settings().supportsXembed();
// We don't support windowed xembed any more. But we still deliver
// events based on X/GTK, not Xt, so we continue to return true
// (and Flash requires that we return true).
*(NPBool*)aValue = true;
return NPERR_NO_ERROR;
case NPNVSupportsWindowless:
*(NPBool*)aValue = PluginModuleChild::GetChrome()->Settings().supportsWindowless();
*(NPBool*)aValue = true;
return NPERR_NO_ERROR;
#if defined(MOZ_WIDGET_GTK)
case NPNVxDisplay: {
if (aNPP) {
return InstCast(aNPP)->NPN_GetValue(aVariable, aValue);
if (!aNPP) {
return NPERR_INVALID_INSTANCE_ERROR;
}
*(void
**)aValue = xt_client_get_display();
return NPERR_NO_ERROR;
return InstCast(aNPP)->NPN_GetValue(aVariable, aValue);
}
case NPNVxtAppContext:
return NPERR_GENERIC_ERROR;