I've been working on using Service Workers to fix the trust issues of web crypto: http://blog.airbornos.com/post/2017/08/03/Transparent-Web-Ap...
Shoot me a message if you're interested in implementing something like that in ProtonMail.
Shoot me a message if you're interested in implementing something like that in ProtonMail.