Bug 535120 - NPN_GetValue(NPNVToolkit) doesn't work with null npp, r=bent

--HG--
extra : rebase_source : 67d03285f34260c02c49579ef8ff664e04bc4a84
This commit is contained in:
Benjamin Smedberg 2010-02-03 17:17:41 -05:00
parent 16f9bfea5a
commit d2f5cee6ad

View File

@ -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