Closed Bug 1971973 Opened 1 year ago Closed 1 year ago

Add a policy to Disable AI in Firefox

Categories

(Firefox :: Enterprise Policies, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox-esr140 --- fixed
firefox144 --- fixed

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
  • ...

Here's what Chrome's AI policies looks like:

https://chromeenterprise.google/policies/#GenerativeAI

I'm going to unhide. We're already getting requests. I just need to do this.

Group: mozilla-employee-confidential
Severity: -- → N/A
Type: task → enhancement
Priority: -- → P3

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: nobody → mozilla
Status: NEW → ASSIGNED
Pushed by mozilla@kaply.com: https://github.com/mozilla-firefox/firefox/commit/87040d65dc20 https://hg.mozilla.org/integration/autoland/rev/4bda39d4ef31 Add enterprise policy for Generative AI. r=gerard-majax,txia,fluent-reviewers,firefox-ai-ml-reviewers,bolsson
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch

It's great to see this land, thank you Mike! Can I ask what happened with the pdf.js alt text generation?

Flags: needinfo?(mozilla)

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.

Flags: needinfo?(mozilla)

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. ModelHub API 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.

Flags: needinfo?(mozilla)

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. ModelHub API 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.

Flags: needinfo?(mozilla)
  • 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.

QA Whiteboard: [qa-triage-done-c145/b144]

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
Attachment #9517887 - Flags: approval-mozilla-esr140?
Flags: in-testsuite+
Attachment #9517887 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+
See Also: → 1996202
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: