0
votes
  1. Tools I use : Browser: firefox 3.6.17 and Google Chrome
    Interface:NPAPI

  2. My question: I want to callback a Javascript function from my NPAPI plugin by calling NPN_invokeDefault after finish to execute "Exec_func" , but it takes secends to execute "Exec_func" ( the browser wait for its return!). for this , I have to create a child thread to execute it ,otherwise the browser will be blocked !
    if I do this , the browser firefox still be blocked like doing nothing , and the browser google chrome will tell me : return error after execute NPN_invokeDefault .

    Regards

addition:

how do i async callback javascript funcs from plugins ,meantime the browser won't be blocked

thanks

Regards

1

1 Answers

0
votes

The NPAPI documentation is very clear about the fact that you cannot call NPN_* functions from any thread but the main thread.