Add a policy to Disable AI in Firefox
Categories
(Firefox :: Enterprise Policies, enhancement, P3)
Tracking
()
People
(Reporter: tschuster, Assigned: mkaply)
References
Details
Attachments
(2 external files)
There a fair number of Firefox users (and I imagine companies) that don't want AI, due to ethical, environmental, copyright or other concerns. We should consider giving them the ability to disable all current and upcoming AI features.
I don't actually know what AI features exists at this point, but I imagine this includes at least:
- Translations (I guess technically not a LLM?)
- pdf.js image descriptions
- The AI chatbot sidebar
- Perplexity
- ...
| Assignee | ||
Comment 1•1 year ago
|
||
Here's what Chrome's AI policies looks like:
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
I'm going to unhide. We're already getting requests. I just need to do this.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
To answer you specifically:
Translations (I guess technically not a LLM?)
We already have a policy
pdf.js image descriptions
Will do - preference is pdfjs.enableAltText
The AI chatbot sidebar
Will do - preference is browser.ml.chat.enabled
Perplexity
This can be done via the Search policy (to remove search engines). I don't think it warrants something custom in AI policy.
Other ones:
AI link previews AI - browser.ml.linkPreview.optin controls the AI portion. I'm going to make it so if it is locked, the category dropdown doesn't display at all.
Tan groups - browser.tabs.groups.smart.userEnabled
That's all I have so far.
One thing I'm unsure of is we support nested policies, so should I create a generic GenAI policy and nest things underneath it?
That will make it a lot easier to add new things without adding a new policy for everything.
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
| Reporter | ||
Comment 7•1 year ago
|
||
It's great to see this land, thank you Mike! Can I ask what happened with the pdf.js alt text generation?
| Assignee | ||
Comment 8•1 year ago
|
||
I discussed it with the PDF and accessibility teams and they felt pretty strongly that because this case was local, fast, and specifically designed for accessibility, it should be enabled.
Plus from a technical point of view, it would have been a lot more work.
Comment 9•1 year ago
|
||
Hello. To give some context I had to disable this ML stuff in Tor Browser. We ended up disabling all the ML features for various reasons, but the common reason is that we haven't figured out how to audit and verify the ML "black box" as a separate organisation, and whether it would be ok to expose our users to it.
So not quite the same reasons as the reporter for this issue, but I imagine they might be interested in what we did.
I discussed it with the PDF and accessibility teams and they felt pretty strongly that because this case was local, fast, and specifically designed for accessibility, it should be enabled.
I guess for the original reporter, that wouldn't necessarily exempt it from their listed concerns. As far as I could tell, the feature guesses English alt text for images added by the user. But without the feature the user is still asked and encouraged to supply alt text. So it seems to be a convenience feature, or it encourages users to write better alt text, presuming that the ML can create better alt text than most users would.
+ ["LinkPreviews", "browser.ml.linkPreview.optin"], + ["TabGroups", "browser.tabs.groups.smart.userEnabled"],
@mkaply Should this have been browser.ml.linkPreview.enabled and browser.tabs.groups.smart.enabled instead, or in addition to these preferences? The optin and userEnabled preferences are set after the user is asked whether they want to use the feature, whilst enabled preferences act at a lower level to never show the feature to the user in the first place.
There also seem to be some other ML preferences not covered by the policy:
browser.translations.enable. Translations. Mentioned to be covered by a different policy.browser.ml.enable. A wider preference that disables a lot of ML engine creation.browser.ml.linkPreview.enabled. Link previews. See above.browser.tabs.groups.smart.enabled. Guessing tab grouping. See above.extensions.ml.enabled.ModelHubAPI for extensions.pdfjs.enableAltText,pdfjs.enableAltTextForEnglish,pdfjs.enableGuessAltText,pdfjs.enableAltTextModelDownload. Guess alt text for images added. See above.browser.urlbar.quicksuggest.mlEnabled. Urlbar suggestions using ML.places.semanticHistory.featureGate. Semantic history.
Some of these are already off by default.
| Assignee | ||
Comment 10•1 year ago
|
||
With enterprise policy, I'm focusing on the user's ability to interact with the features, so my choices are going to be "things that are active or about to be active due to Nimbus testing."
I guess for the original reporter, that wouldn't necessarily exempt it from their listed concerns. As far as I could tell, the feature guesses English alt text for images added by the user. But without the feature the user is still asked and encouraged to supply alt text. So it seems to be a convenience feature, or it encourages users to write better alt text, presuming that the ML can create better alt text than most users would.
Most folks don't do alt text at all, so the goal was to give them a starting place to hopefully encourage it to be used (which is great for accessibility).
I'll probably open a separate bug for discussion.
The feedback I've gotten from enterprise folks is that the main concern around AI is the chatbots, and performance when other features are used on older machine. Alt text doesn't really fall into either of these because it's really an edge case (that a user chooses to do)
browser.translations.enable. Translations. Mentioned to be covered by a different policy.
Yeah, separate policy. I thought about duplicating it here just to be consistent. I might do that.
browser.ml.enable. A wider preference that disables a lot of ML engine creation.
I looked at this, but I don't see anything that is user impacted here. Does anything ML get created if you don't use an ML Feature?
browser.ml.linkPreview.enabled. Link previews. See above.
This disables the entire feature, whereas I am only concerned with the AI part.
browser.tabs.groups.smart.enabled. Guessing tab grouping. See above.
The preference used in about:preferences is userEnabled, so that should be enough.
extensions.ml.enabled.ModelHubAPI for extensions.
That's an interesting one. Again, from a user perspective, nothing to do here. If an enterprise didn't want an AI addon, they would prevent access to the addon.
browser.urlbar.quicksuggest.mlEnabled. Urlbar suggestions using ML.
I haven't seen this rollout yet.
places.semanticHistory.featureGate. Semantic history.
Same
I designed this policy so I can just add new things as they happen.
Comment 11•1 year ago
•
|
||
- browser.ml.linkPreview.enabled. Link previews. See above.
This disables the entire feature, whereas I am only concerned with the AI part.
Ah right. Thank you for clarifying this.
browser.ml.enable. A wider preference that disables a lot of ML engine creation.I looked at this, but I don't see anything that is user impacted here. Does anything ML get created if you don't use an ML Feature?
I don't think so. Some features will check for two preferences before they are enabled: browser.ml.enable and a feature-specific preference. But, this is not done consistently for all features that would rely on the browser.ml.enable preference being true. E.g. link preview will still be offered but will fail with a console error.
But it may be appealing to users as a preference that would disable all ML features, so they wouldn't need to keep track of new features that are added. However, I think it currently would not be sufficient to play this role. E.g. I think translations and the chat sidebar do not rely on the preference, and some ML features rely on it, but still have their UI exposed.
However, this is maybe more in line with providing a preference for individual users in about:preferences, rather than a policy.
Updated•1 year ago
|
Comment 12•1 year ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined: Consistency with Firefox ESR
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Enterprise only.
I realize this is adding policies for stuff that isn't on by default in ESR yet, but I thought it was safer to use the exact same patch for both.
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Comment 13•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D263430
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 14•1 year ago
|
||
| uplift | ||
Description
•