How could I marshall call to main thread?
See http://www.mozilla.org/projects/xpcom/Proxies.html
The examples and description there is quite C++-centric, but it does work from javascript. Note that the PROXY_SYNC and PROXY_ASYNC constants are not available to JS (bug?), you have to use their numeric value (PROXY_SYNC is 0x1, PROXY_ASYNC is 0x2, PROXY_ALWAYS is 0x4).
smime.p7s
Description: S/MIME Cryptographic Signature
