Hard-code NPNVsupportsAdvancedKeyHandling to FALSE

In case a plugin attempts to check this (unlikely as no browser
implements it yet) and avoid NULL checks on all the entry points, we
shouldn't crash. Also, for correctness, even if the browser supports it,
a browser + nspluginwrapper combination doesn't.
This commit is contained in:
David Benjamin 2011-09-14 10:55:56 -04:00
parent 62a50c7197
commit 65ef09da15
1 changed files with 5 additions and 1 deletions

View File

@ -1184,12 +1184,16 @@ g_NPN_GetValue(NPP instance, NPNVariable variable, void *value)
}
*((GdkNativeWindow *)value) = GDK_WINDOW_XWINDOW(plugin->browser_toplevel);
break;
// TODO: when AdvancedKeyHandling hooks are supported, proxy this value over
// from the browser.
case NPNVsupportsAdvancedKeyHandling:
*(NPBool*)value = FALSE;
break;
case NPNVSupportsWindowless:
case NPNVSupportsXEmbedBool:
case NPNVWindowNPObject:
case NPNVPluginElementNPObject:
case NPNVprivateModeBool:
case NPNVsupportsAdvancedKeyHandling:
case NPNVdocumentOrigin:
return g_NPN_GetValue_real(instance, variable, value);
default: