Hook up desktop to the dismissal API in the Suggest Rust component
Categories
(Firefox :: Address Bar, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: adw, Assigned: adw)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
It's time to hook up desktop Suggest to the dismissal API in the Rust component. All this time we've continued to use our old pre-Rust API that stores URL digests of dismissed suggestions in browser.urlbar.quicksuggest.blockedDigests
. That hasn't been a major problem because dismissals in the Rust component have also been keyed on URL -- until now in bug 1960786, which switched AMP dismissals to being keyed on full keyword.
This is required for AMP geo expansion because it will fix the problem of AMP dismissals reappearing after a day.
Updated•21 days ago
|
Assignee | ||
Comment 1•21 days ago
|
||
This hooks up desktop to the dismissal API in the Rust component [1] and removes
BlockedSuggestions
.
The Rust dismissal API has two ways to dismiss a suggestion: by Suggestion
object and by dismissal key. We use the first one for Rust suggestions and the
second one for other suggestions, like Merino. A dismissal key is just an
arbitrary opaque string token stored in the dismissed-suggestions table in the
Rust component. It's up to consumers (like desktop) to use appropriate dismissal
keys for their non-Rust suggestions.
In order to retain the user's blocked digests that desktop has always recorded
in the quicksuggest.blockedDigests
pref, I took advantage of dismissal keys by
migrating each digest to a dismissal key in the Rust component.
[1] See bug 1961412 and https://github.com/mozilla/application-services/pull/6714
Comment 3•19 days ago
|
||
bugherder |
Updated•13 days ago
|
Description
•