I'm creating an NPAPI plugin that isn't supposed to have a UI (for use from Javascript only). What windowing model should I use (windowed/windowless/xembed) to support as many browsers (and browser versions) as possible?
I currently implement the following functions:
NPP_SetWindow
: do nothing, returnNPERR_NO_ERROR
NPP_Event
: do nothing, returnkNPEventNotHandled
(0)NPP_SetValue
: do nothing, returnNPERR_NO_ERROR
NPP_GetValue
: if asked forNPPVpluginNeedsXEmbed
, answer yes if the browser supports it (NPNVSupportsXEmbedBool
), no otherwise
For this plugin I am supporting Linux & Windows only for now. The NPPVpluginNeedsXEmbed
was necessary for Chrome on Linux (bug 38229), however some old versions may not support it as the MDC page says that the sample plugin for XEmbed is only supported on Firefox 2.0+.