mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 535120 - NPN_GetValue(NPNVToolkit) doesn't work with null npp, r=bent
--HG-- extra : rebase_source : 67d03285f34260c02c49579ef8ff664e04bc4a84
This commit is contained in:
parent
16f9bfea5a
commit
d2f5cee6ad
@ -651,6 +651,14 @@ _getvalue(NPP aNPP,
|
||||
AssertPluginThread();
|
||||
|
||||
switch (aVariable) {
|
||||
// Copied from nsNPAPIPlugin.cpp
|
||||
case NPNVToolkit:
|
||||
#ifdef MOZ_WIDGET_GTK2
|
||||
*static_cast<NPNToolkitType*>(aValue) = NPNVGtk2;
|
||||
return NPERR_NO_ERROR;
|
||||
#endif
|
||||
return NPERR_GENERIC_ERROR;
|
||||
|
||||
case NPNVjavascriptEnabledBool: // Intentional fall-through
|
||||
case NPNVasdEnabledBool: // Intentional fall-through
|
||||
case NPNVisOfflineBool: // Intentional fall-through
|
||||
|
Loading…
Reference in New Issue
Block a user