Fixing bug 256898. Initialize all NPN callback functions, and correct an error in the prototype for NPN_IdentifierIsString(). r+sr=brendan@mozilla.org

This commit is contained in:
jst%mozilla.jstenback.com 2004-08-25 22:32:41 +00:00
Родитель d0c0785232
Коммит 0d2cd5b162
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -254,7 +254,7 @@ NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);
void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
NPIdentifier *identifiers);
NPIdentifier NPN_GetIntIdentifier(int32_t intid);
bool NPN_IdentifierIsString(NPIdentifier *identifier);
bool NPN_IdentifierIsString(NPIdentifier identifier);
/*
The NPUTF8 returned from NPN_UTF8FromIdentifier SHOULD be freed.

Просмотреть файл

@ -338,6 +338,9 @@ ns4xPlugin::CheckClassInitialized(void)
CALLBACKS.utf8fromidentifier =
NewNPN_UTF8FromIdentifierProc(FP2TV(_utf8fromidentifier));
CALLBACKS.intfromidentifier =
NewNPN_IntFromIdentifierProc(FP2TV(_intfromidentifier));
CALLBACKS.createobject =
NewNPN_CreateObjectProc(FP2TV(_createobject));
@ -362,6 +365,12 @@ ns4xPlugin::CheckClassInitialized(void)
CALLBACKS.removeproperty =
NewNPN_RemovePropertyProc(FP2TV(_removeproperty));
CALLBACKS.hasproperty =
NewNPN_HasPropertyProc(FP2TV(_hasproperty));
CALLBACKS.hasmethod =
NewNPN_HasMethodProc(FP2TV(_hasmethod));
CALLBACKS.releasevariantvalue =
NewNPN_ReleaseVariantValueProc(FP2TV(_releasevariantvalue));