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:
parent
62a50c7197
commit
65ef09da15
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue