NS_ASSERTION(gServiceMgr != NULL, "null service manager"); if (gServiceMgr == NULL) return NULL;
_useragent(NPP npp){  NPN_PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("NPN_UserAgent: npp=%p\n", (void*)npp));  NS_ASSERTION(gServiceMgr != NULL, "null service manager");  if (gServiceMgr == NULL)    return NULL;    char *retstr;  nsCOMPtr<nsIPluginManager> pm(do_GetService(kPluginManagerCID));  pm->UserAgent((const char **)&retstr);  return retstr;}