Always provide the event loop functions

It doesn't matter whether or not the browser handles them, we always do.
This commit is contained in:
David Benjamin 2011-04-28 19:25:38 -04:00
parent 0209a6814c
commit c9a15440ef
1 changed files with 6 additions and 0 deletions

View File

@ -3579,6 +3579,12 @@ g_NP_Initialize(uint32_t version, uint32_t *plugin_version,
#undef BROWSER_FUNC
browser_func_done:
// Unconditionally provide NPN_PluginThreadAsyncCall and the timer
// functions. They require no browser support.
mozilla_funcs.pluginthreadasynccall = g_NPN_PluginThreadAsyncCall;
mozilla_funcs.scheduletimer = g_NPN_ScheduleTimer;
mozilla_funcs.unscheduletimer = g_NPN_UnscheduleTimer;
if (!npobject_bridge_new())
return NPERR_OUT_OF_MEMORY_ERROR;