Closed Bug 1961881 Opened 21 days ago Closed 19 days ago

Hook up desktop to the dismissal API in the Suggest Rust component

Categories

(Firefox :: Address Bar, task, P1)

task

Tracking

()

RESOLVED FIXED
139 Branch
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.

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

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2bdf26a45b56 Hook up desktop to the dismissal API in the Suggest Rust component. r=daisuke,settings-reviewers
Status: ASSIGNED → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: