Add an AI control for widget generation
Categories
(Firefox :: Widgets, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: fchasen, Assigned: nina-py)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [hnt][hnt-wattle])
Attachments
(4 external files)
Updated•1 month ago
|
Updated•1 month ago
|
| Reporter | ||
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 1•23 days ago
|
||
Custom widgets have been added to AI Controls as a feature of their
own, with the pref browser.ai.control.generatedWidgets. Blocking it,
or blocking all AI, only sets the control pref, so the user stays in the
Firefox Labs feature. Installed widgets keep running, since
extensions.widgets.generated.enabled is left alone.
The feature only counts as allowed while the Labs pref is on, so AI
Controls treats it as unavailable for users outside Labs. Making the
feature available again never enrols anyone.
| Assignee | ||
Comment 2•23 days ago
|
||
WidgetGenerator.generate() now stops with the new
GENERATION_ERRORS.BLOCKED code while custom widgets are blocked in
AI Controls. Without a signed-in Mozilla account it stops with AUTH,
so a guest can no longer create widgets. The block is checked before
the account, so a blocked user is never asked to sign in.
A block during generation stops it after the current model reply,
which is thrown away, so no further request reaches the server. The
developer endpoint pref still skips the account check, but not the
block.
The Widget Studio sidebar tool is hidden while custom widgets are
blocked, with its own block check in browser-sidebar.js, since
blocking no longer turns off browser.widgets.generated.enabled.
| Assignee | ||
Comment 3•23 days ago
|
||
The AIControls policy has a new CustomWidgets key for the control
pref browser.ai.control.generatedWidgets, which follows Default
like the other features.
As with Smart Window, "available" leaves the feature's own switch,
browser.widgets.generated.enabled, alone: users opt in through
Firefox Labs. "blocked" only sets the control pref, locked if the
policy is, which is enough to refuse generation and hide the Widget
Studio panel.
| Assignee | ||
Comment 4•23 days ago
|
||
AI Controls has a new "Custom widgets" group beneath the sidebar
chatbot, with one row offering Available, Enabled and Blocked. The group
only shows while browser.widgets.generated.enabled is on, even with
the aiControlsShowUnavailable debug pref set, and the "Block AI
enhancements" dialog lists custom widgets only for those users. A user
in Labs reads "Enabled" until they choose "Available" or block it.
The strings are in browser/locales-preview/widgets.ftl until the copy
is confirmed, and the "Learn more" link points at the AI Controls
support article for now.
Updated•21 days ago
|
Comment 6•20 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f43d8b011431
https://hg.mozilla.org/mozilla-central/rev/dfbb0dc3d573
https://hg.mozilla.org/mozilla-central/rev/b0785bee5c37
https://hg.mozilla.org/mozilla-central/rev/b61f0a8108fa
Updated•5 days ago
|
Description
•