+++ This bug was initially created as a clone of Bug #805305 +++
This does a public key operation on the main thread. It is not used by any addons on AMO (according to MXR) and it's only use within Gecko will go away soon. MailNews uses it, but only to initialize PSM and/or to check if PSM exists; I will provide MailNews with another technique for initializing PSM.
Created attachment 677148 [details] [diff] [review]
This does what Brian suggests in bug 805305 comment 1. It looks like all but one of the cases were detecting if psm was included or not (which really should have been build config switches!).
Comment on attachment 677148 [details] [diff] [review]
[Surely the correct way to do these checks would have been to try to instantiate the appropriate auth module? Also, interesting that IMAP doesn't even bother.]
if you can keep it, then with window.crypto.signText, I can sign on something
and with this iterface, I can verify something.
This interface is especially good to be called from content page. since it does not require the caller to find the certificate.
can we keep this and make it scriptable? or add it to the crypto?