Closed Bug 1932502 Opened 2 months ago Closed 2 months ago

Remove the Suggest JS backend

Categories

(Firefox :: Address Bar, task, P3)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

(Whiteboard: [sng])

Attachments

(4 files)

Should be safe to remove the Suggest JS backend now. Its replacement, the Rust backend, was enabled by default in 124 (bug 1880144).

This patch is part 1 of 4. I tried to break the removal into parts that make
sense individually since removing it all at once would be a much larger patch
that would probably be harder to review.

This part removes add_tasks_with_rust() from both xpcshell and browser tests
and removes some tests that either aren't enabled without Rust or don't make
sense without it.

Assignee: nobody → adw
Status: NEW → ASSIGNED

This is part 2 of 4, the main part. It removes the backend and the code in
BaseFeature and feature subclasses that hook into it. As a consequence it also
makes the other following changes:

  • Remove QuickSuggest.backend (eventually I'd like to add a Merino backend and
    then add a new QuickSuggest.backends list that has the Rust, Merino, and ML
    backends)
  • Add QuickSuggest.config
  • Replace uses of QuickSuggest.backend.config and QuickSuggest.jsBackend.config
    with QuickSuggest.config
  • Remove the quickSuggestRustEnabled Nimbus variable
  • Update most remaining tests so that they do not assume the JS backend exists

I left the browser.urlbar.quicksuggest.rustEnabled pref. I would like to
preserve the ability to toggle off Rust suggestions while keeping other parts of
Suggest enabled even if we don't need it now. That seems like a wise thing to do
and is similar to how both Merino and the ML backends can be toggled separately.

Depends on D231465

This is part 3 of 4. It removes the "remote-settings" source used internally
and its rs_ counterpart in telemetry result types.

Depends on D231466

This is part 4 of 4. There are some Nimbus variables that are now unused plus
one legacy histogram.

Depends on D231467

See Also: → 1936457
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f1939ed50f17 Remove the Suggest JS backend: Part 1: Update tests. r=daisuke https://hg.mozilla.org/integration/autoland/rev/455237b42be5 Remove the Suggest JS backend: Part 2: Remove the backend. r=daisuke https://hg.mozilla.org/integration/autoland/rev/53e4d280499d Remove the Suggest JS backend: Part 3: Remove the "remote-settings" and "rs_" source. r=daisuke https://hg.mozilla.org/integration/autoland/rev/4c203310fe82 Remove the Suggest JS backend: Part 4: Remove other Nimbus variables and legacy telemetry. r=daisuke
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: