WebCompat Go Faster add-on
This is the development repository for the Firefox WebCompat Go Faster add-on.
Writing site patches, overrides and injections
Detailed information on our policies on writing overrides, as well as technical information, can be found in the Mozilla Wiki.
This guide assumes you've got a copy of
mozilla-central checked out on your machine and you already have set up Node.js 5 or newer. The build script assumes your
mozilla-central is located at
../fx-team relative to inside the root folder. If not, please set the
EXPORT_MC_LOCATION environment accordingly.
Running the extension without a built and set up
mozilla-central is not possible at the moment.
If this is the first time you're working with this repository, install the dependencies with
Exporting the sources to
npm run jake export-mcfor Desktop or
npm run jake export-mc-androidfor Android.
- Find the exported files in your
mozilla-centraldirectory, ready to commit.
Run the changed extension sources
If you want to debug this extension on recent Desktop versions, you can use
- Click the
Load Temporary Add-on...button
./src/manifest.jsonand hit open.
about:debugging is not an option. To test Fennec:
npm start calls
web-ext, check their documentation for available parameters, including debugging options.
npm run jake export-xpi.
- Find the built
Run the automated test suite
npm run test
Automatically check and adjust the code style
mozilla-central is now mostly auto-formatted with prettier, and the config for that is really slim, this repo follows these guidelines. To automatically check and adjust the code style,
npm run prettier