Open Bug 1994785 Opened 1 year ago Updated 10 months ago

AI Context Menu is still displayed if browser.ml.chat.enabled is set to false

Categories

(Core :: Machine Learning: Frontend, defect)

defect

Tracking

()

People

(Reporter: mkaply, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

If you set browser.ml.chat.enabled to false to remove the AI sidebar, the context menu is still displayed and opens the AI sidebar.

This is because in GenAI.sys.mjs, the check to display the contextmenu uses lazy.sidebarTools.includes("aichat"), which just reads the preference string which still has aichat in it.

It should check the preference (or sidebarTools should remove aichat from the list when the pref is flipped)

Yep, I was just about to report this issue myself as well. Interestingly, this bug is only impacting one of my profiles - my others (which also have browser.ml.chat.enabled set to false) don't seem to be impacted.

For a temporary solution, setting browser.ml.chat.page to false seems to remove the context menu item - but I think this should definitely be covered by browser.ml.chat.enabled.

Flags: needinfo?(edilee)
Blocks: 1968469
Component: Machine Learning: General → Machine Learning: Frontend
Flags: needinfo?(edilee)
Whiteboard: [genai]

The severity field is not set for this bug.
:Mardak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)

I tested this on Nightly, and it looks like this is fixed with the AI controls functionality.

You need to log in before you can comment on or make changes to this bug.