Deploying the extension to Firefox
The Trakkwise extension runs in Firefox 140 and later (including ESR 140), on Windows, macOS and Linux. It does the same as in Chrome and Edge: it records AI site use, checks prompts, pastes and uploads, and blocks or warns as your policy says.
The Firefox add-on ID is ai-governance@trakkwise.com. Policies name the
extension by this ID.
1. Get the policy file
Settings → Deploy → 2 · Install on devices → Firefox → policies.json.
Create an enrollment token first. The file sets two Firefox enterprise
policies:
ExtensionSettingsforce-installs the extension from itsinstall_url(addons.mozilla.org's latest version, or your own copy if you host the signed.xpiyourself).3rdpartygives the extension its settings (serverUrl,enrollmentToken,corporateDomains). The extension reads them as managed storage, as in Chrome.
2. Deploy it
These steps follow Mozilla's policy templates (github.com/mozilla/policy-templates).
| Where | How |
|---|---|
| Windows, by hand or with your own tooling | Put policies.json in a folder called distribution next to firefox.exe |
| Windows, Group Policy or Intune | Load Mozilla's ADMX templates and set Extensions → Extension Management (ExtensionSettings) and the 3rdparty settings to the same JSON |
| macOS | Put policies.json in Firefox.app/Contents/Resources/distribution, or deploy a profile for org.mozilla.firefox with EnterprisePoliciesEnabled set to true and the same ExtensionSettings and 3rdparty keys |
| Linux | Put policies.json in /etc/firefox/policies/ |
Firefox reads policy when it starts, so restart Firefox after deploying.
3. Tell it who the person is
In Chrome and Edge, the extension records activity under the email of the
signed-in browser profile. Firefox has no way to give an extension that email.
So set userEmail in the 3rdparty settings for each person, from your MDM's
per-user variable. Two examples:
- Intune (user-targeted ADMX setting):
{{mail}}or{{userprincipalname}}. - Jamf Pro (macOS profile):
$EMAIL.
The extension ignores a value that isn't an email address, such as a variable
your MDM didn't fill in. Without userEmail, Firefox activity is still
recorded and policy still applies, but without a person's name.
The same setting works in Chrome and Edge for profiles that aren't signed in.
Site access
People can turn off an extension's access to websites in Firefox (the extensions button in the toolbar). Without it, the extension can't check AI sites. When that happens:
- the extension reports
no_site_accessin its health (Settings → Deploy and People show devices with problems); - its popup tells the person and has a button to turn access back on.
Publishing on addons.mozilla.org
A release tag (extension-v1.2.3) runs .github/workflows/release-extension.yml.
It builds the Firefox extension, lints it with Mozilla's linter, and submits it
to addons.mozilla.org with web-ext sign. It needs the add-ons site API key
and secret as the secrets AMO_JWT_ISSUER and AMO_JWT_SECRET (environment
release; from addons.mozilla.org → Developer Hub → Manage API Keys).
Each submission includes a source archive (README-AMO.md inside has the build
steps), because Mozilla's reviewers rebuild bundled code and compare. CI checks
on every pull request that the archive rebuilds to exactly the submitted files.
Firefox builds are not minified, so reviewers can read them.
There are two ways to publish:
- Listed (the default). addons.mozilla.org lists, reviews, signs, hosts
and updates the extension. A review by hand can take days, so the release
doesn't wait for it.
policies.jsoninstalls it from the add-ons site, which is the Deploy page's default. - Self-hosted. Set the variable
FIREFOX_UPDATE_URL(environmentrelease) to<downloads address>/extension/firefox/updates.json. The build then names that address in the extension, the add-ons site signs it without listing it, and the release publishes the signed.xpiandupdates.jsonto the downloads bucket. Then setfirefox_extension_urlin Terraform to<downloads address>/extension/firefox/latest/trakkwise.xpi, sopolicies.jsoninstalls it from there. Firefox checksupdates.jsonfor new versions.
The first listed version needs the listing text in extension/amo-metadata.json
(summary, category and license).
Not tested yet
CI runs the extension in Firefox on Linux. It checks enrollment, a blocked
site, a blocked prompt, the events, and a release build configured from
/etc/firefox/policies/policies.json. Deployment through GPO, Intune and macOS
profiles hasn't been tried on real machines.