WebAssembly in WebExtensions?

Are there any guidelines or considerations for using WebAssembly in WebExtensions? I’m also talking about having them published on AMO.

  • Is all the WebExtension functionality available in each of the extension contexts?
  • Is there anything to consider to help review apart from including the source and repeatable build instructions?

If you mean a webassembly context, no because there is no API exposed directly to webassembly (like you currently can’t directly access the DOM).

uBlock origin seems to have web assembly parts (https://github.com/gorhill/uBlock/tree/master/src/js/wasm) which is mostly documented in the ways you’re describing. I don’t think there have been any updates regarding expectations toward web assembly sources specifically (see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Source_Code_Submission )

Great - I’ve got no reason not to give it a try then - Thanks!