implement NPN_UserAgent, which was trickier than expected

This commit is contained in:
Chris Jones
2009-10-08 02:54:16 -05:00
parent 450d458d36
commit d7c466bc04
4 changed files with 21 additions and 3 deletions

View File

@@ -342,6 +342,14 @@ PluginModuleParent::NPP_SetValue(NPP instance, NPNVariable variable,
return InstCast(instance)->NPP_SetValue(variable, value);
}
bool
PluginModuleParent::AnswerNPN_UserAgent(nsCString* userAgent)
{
NPP_t dummy = { 0, 0 };
*userAgent = NullableString(mNPNIface->uagent(&dummy));
return true;
}
bool
PluginModuleParent::RecvNPN_GetStringIdentifier(const nsCString& aString,
NPRemoteIdentifier* aId)