Npapi plugin crash in firefox

2019-09-01 08:27发布

问题:

I'm writing a npapi plugin can sign pdf document, my plugin worked in chrome, ie but in firefox when my plugin export a dialog as image i can't input anything then my plugin is crashed. Can you tell me why i can't input anything when my plugin call a dialog of windows?

回答1:

From the response to the same question you asked on the firebreath-dev group:

You must never block the main (UI) thread in a plugin. Run your dialog on another thread and it'll probably work.