ML for address form fields is enabled on enterprise builds
Categories
(Enterprise Products :: Firefox, defect, P1)
Tracking
(Not tracked)
People
(Reporter: RT, Unassigned)
References
Details
Attachments
(1 external file)
Recent builds show an AI section under about:addons that lists models that were fetched from modelhub (https://console.cloud.google.com/storage/browser/moz-model-hub/mozilla/form-autofill-embed?pageState=(%22StorageObjectListTable%22:(%22f%22:%22%255B%255D%22)).
This new section shows regardless of the AI kill switrch being enabled or not.
This flow seems to start with remote settings , which could be where we fix it, Claude interpretations of the flow:
-
Remote Settings tells Firefox what to download. The ML runtime (toolkit/components/ml, the "Firefox AI Runtime" built on Transformers.js + ONNX) reads two Remote Settings collections: ml-onnx-runtime (the WASM files for the inference runtime itself) and ml-inference-options (per-feature records keyed by featureId — e.g. pdfjs-alt-text — specifying modelId, modelRevision, quantization dtype, tokenizer/processor IDs). No model URLs are hardcoded in Firefox; bumping a revision in Remote Settings is what triggers a re-download for users.
-
The Model Hub serves the files. When a feature first creates an inference engine, Firefox fetches the model files over plain HTTPS from Mozilla's hub, which mirrors Hugging Face's URL structure:
https://model-hub.mozilla.org/<organization>/<model>/<revision>/<path>
(e.g. mozilla/distilvit/v0.5.0/onnx/…). A model is a set of files — ONNX weights at various quantization levels, config.json, tokenizer files, etc. The hub root is pref-controlled (browser.ml.modelHubRootUrl / browser.ml.modelHubUrlTemplate), which is how tests and alternative hubs (including Hugging Face directly, for some features) are pointed at.
- Local cache = what about:addons shows. Downloaded files are stored in IndexedDB so they're fetched once. The "AI Models" section in about:addons is a management UI over that cache: models appear there once a feature (translations aside — that's a separate, older pipeline via Remote Settings attachments and Bergamot) has pulled them, and removing one just evicts it from the cache; it re-downloads on next use. Models are never "installed" like extensions — the addons page is just the visibility/cleanup surface.
Comment 1•2 months ago
|
||
The problem is that these things aren't covered in the AI Kill Switch.
Comment 2•2 months ago
|
||
There's a few things are going on: setting browser.ml.enable=false prevents models from being downloaded, that's every feature that uses the ML engine (form autofill, link preview, smart tab groups, PDF alt text). Currently, admins can only configure that with Preferences, not AIControls:
"Preferences": {
"browser.ml.enable": { "Value": false, "Status": "locked" }
}
One option we have it to set it off by default in Enterprise:
// Enable the experimental machine learning inference engine.
#ifdef MOZ_ENTERPRISE
pref("browser.ml.enable", false);
#else
pref("browser.ml.enable", true);
#endif
For the actual "On-device AI" section in about:addons, that shows whenever anything is already in the local model cache. Setting browser.ml.enable=false doesn't remove models or hide the section. For the models mentioned by Romain, (form-autofill-embed, form-autofill-head): they come from extensions.formautofill.useml. There's one bug we have where extensions.formautofill.useml defaults to true on Windows and macOS for enterprise builds, we have some guards for this that need to be fixed:
// Use ML for address form field detection.
#if defined(XP_WIN) || defined(XP_MACOSX)
#if MOZ_UPDATE_CHANNEL != release && MOZ_UPDATE_CHANNEL != esr
pref("extensions.formautofill.useml", true);
#else
pref("extensions.formautofill.useml", false);
#endif
#else
That means we would get it on by default in Enterprise builds, if I understand it correctly.
Other notes:
- On-device speech recognition isn't blocked by
browser.ml.enable, it's controlled byAIControls -> SpeechRecognition. - Translations models come from Remote Settings, controlled by
AIControls -> Translations.
Comment 3•2 months ago
|
||
(via GitHub webhook, authenticated as shared-secret)
Updated•2 months ago
|
Comment 4•2 months ago
|
||
Authored by https://github.com/bsmth
https://github.com/mozilla/enterprise-firefox/commit/b6a72fc790ae105750d66121c6be71581546d7a4
[enterprise-main] Bug 2072236 - Disable form ML on enterprise releases by default
Authored by https://github.com/lissyx
https://github.com/mozilla/enterprise-firefox/commit/cc9cd1b09011d57ea5cb43155623c9233666b483
[enterprise-main] Merge pull request #1571 from bsmth/2072236-pref-guards
(via GitHub webhook, authenticated as shared-secret)
Updated•2 months ago
|
Updated•1 month ago
|
Comment 5•1 month ago
•
|
||
The "On-device AI" section is no longer available on newly installed enterprise builds with a fresh profile.
Verified using FxE 158.0b6 (20261007174453) and FxE 159.0a1 (20260930034337)
Description
•