Replace the `browser.urlbar.suggest.quicksuggest.nonsponsored` pref with `browser.urlbar.suggest.quicksuggest.all` in core Suggest code
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox146 | --- | fixed |
People
(Reporter: standard8, Assigned: adw)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Whiteboard: [sng])
Attachments
(5 files)
As part of the work for the proxy suggest, we want to add a new preference (browser.urlbar.suggest.quicksuggest.all) that will replace the current browser.urlbar.suggest.quicksuggest.nonsponsored preference.
This is because in the settings UI, the current sponsored & improve preferences will be moved to be a level underneath the existing non-sponsored preference, and hence will be controlled/overridden for those.
For this bug, we want to:
- Add the new preference, as a sticky pref (defaulted to true)
- Add it to the default prefs in QuickSuggest
- Update most of the
SuggestProviders so that they will gate themselves on the new preference. - Update tests as appropriate.
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
This is part 1 of 5 and integrates the new all pref with core Suggest code
plus AMP and Wikipedia suggestions.
To recap, we're removing the nonsponsored pref and adding a new pref that
controls all Suggest suggestions, which this patch calls all. In order for
nonsponsored suggestions to be shown, all must be true. For sponsored
suggestions to be shown, both all and suggest.quicksuggest.sponsored must be
true.
Depends on D269720
| Assignee | ||
Comment 2•2 months ago
|
||
This integrates the new all pref with dynamic Rust suggestions. I added a way
for them to bypass the all check by setting bypassSuggestAll. That will
allow us to use dynamic suggestions for suggestion types that aren't considered
part of the Suggest brand proper, like important dates, exposure suggestions,
and whatever else we might need.
Depends on D269893
| Assignee | ||
Comment 3•2 months ago
|
||
This integrates the new all pref with the remaining Suggest features that
aren't handled in parts 1 and 2.
Depends on D269894
| Assignee | ||
Comment 4•2 months ago
|
||
This adds a migration that copies the nonsponsored pref to the new all pref.
Depends on D269895
| Assignee | ||
Comment 5•2 months ago
|
||
This updates pref telemetry and "disable" telemetry for the new all pref and
the removal of the nonsponsored pref.
Depends on D269896
| Assignee | ||
Comment 6•2 months ago
|
||
Morphing this bug a little to cover replacement of nonsponsored in core Suggest code (see bug 1995577 comment 1). I will leave some remaining uses of the pref in other places to be handled in bug 1995577 and other bugs to be filed:
browser/app/profile/firefox.js
browser/components/enterprisepolicies/Policies.sys.mjs
browser/components/preferences/
toolkit/components/telemetry/app/TelemetryEnvironment.sys.mjs
toolkit/components/telemetry/docs/data/environment.rst
| Assignee | ||
Updated•2 months ago
|
https://hg.mozilla.org/mozilla-central/rev/dfceec4bab74
https://hg.mozilla.org/mozilla-central/rev/ff8642d0fcdd
https://hg.mozilla.org/mozilla-central/rev/ffd775187850
https://hg.mozilla.org/mozilla-central/rev/3855b903071e
https://hg.mozilla.org/mozilla-central/rev/5c9a511239d4
Updated•1 month ago
|
Description
•