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

git-svn-id: svn://10.0.0.236/trunk@161282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-08-25 22:32:41 +00:00
parent 1c4905d744
commit 5c1fe97158
2 changed files with 10 additions and 1 deletions

View File

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

View File

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