cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

Error on Google extention with manifest v3

Open young-healer opened this issue 3 years ago • 5 comments

Hi, I face a problem on developing Google extention on manifest v3 with this library, After build and deploy i got this error, and can't find a way to fix this "Uncaught (in promise) RuntimeError: abort(CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder)"

young-healer avatar Dec 16 '21 07:12 young-healer

Right now, CosmJS uses Wasm internally for crypto. We may migrate away from that at some point, but cannot easily do that short term. Did you see this? https://stackoverflow.com/questions/48523118/wasm-module-compile-error-in-chrome-extension

webmaster128 avatar Dec 16 '21 08:12 webmaster128

@webmaster128 Yes, I've read that before. these methods don't work with the third manifest.

young-healer avatar Dec 16 '21 08:12 young-healer

This is discussed here: https://bugs.chromium.org/p/chromium/issues/detail?id=1173354. I do not yet understand all the details and have no immediate solution.

webmaster128 avatar Dec 16 '21 08:12 webmaster128

Are there any news about this issue? We're developing a Chrome extension and this is a huge blocking issue. Please let me know!

ducciobottai avatar Dec 01 '22 18:12 ducciobottai

Contributions are welcome, especially researching what the core problem is here and what the library can do. I'll not work on this myself any time soon.

webmaster128 avatar Dec 01 '22 19:12 webmaster128