Use Mozilla's web-ext CLI to load and auto-reload a Firefox extension for manual and automated testing

domain: extensionworkshop.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install with npm install --global web-ext (Node LTS recommended), or as a project devDependency
  2. From the extension's source directory where manifest.json lives, run web-ext run to launch Firefox with the extension temporarily installed
  3. Use --source-dir to point at the extension source when running from elsewhere, and --firefox to target a specific binary/channel such as Firefox Developer Edition
  4. Leave web-ext run active during development — it watches source files and reloads the extension automatically on change, and pressing r in the terminal forces a manual reload
  5. For CI smoke tests, pair web-ext lint for manifest/static validation with a scripted web-ext run session driven by a WebDriver client for real interaction testing, since web-ext itself doesn't run test assertions

Known gotchas

Related routes

Write a WebExtension that behaves correctly on both Firefox and Chrome, handling API namespace and background-context differences
developer.mozilla.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans