Extensions! Extensions!
Notes on getting web extensions working with Webnative SDK
Getting started
- Basic Tutorial ( 2018, by @potch )
- Extension workshop ( Mozilla )
- cross browser extensions ( MDN )
- Mozilla web extensions examples
Examples:
Webnative notes
Questions:
- can we do webnative stuff in the background page? worried about secure contexts
- can we “pair” the extensions with a fission app that registers a web worker, and then do message passing from the extension to the worker?
- least elegant solution - we have to have a page open in order to talk to fission / WN from the extension.
Tools
- web extension polyfill - polyfill library that smooths out cross-browser differences
- “batteries included” extension template
- webext - cli tool for building and publishing web extensions
- Puppeteer headful testing GH Action
- production-grade extension using tests via mocha / chai