Search code examples
winapifirefoxbrowserpluginsnpapi

How can I update the status messages in Firefox from any thread?


I encountered a problem with updating the status message on Firefox from a Plugin code.

As the documentation says calling NPN_Status works only when called from the main thread. My requirement is to update the status from any thread within the Firefox process.

Any help would be appreciated!


Solution

  • You can't update it from any thread because that would violate some of the threadsafety rules. You will have to proxy your update back to the main thread.