Files
tubestation/browser/components/urlbar/moz.build
Drew Willcoxon 2033165d91 Bug 1932502 - Remove the Suggest JS backend: Part 2: Remove the backend. r=daisuke
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

Differential Revision: https://phabricator.services.mozilla.com/D231466
2024-12-11 20:50:45 +00:00

106 lines
3.6 KiB
Plaintext

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files("**"):
BUG_COMPONENT = ("Firefox", "Address Bar")
JAR_MANIFESTS += ["jar.mn"]
DIRS += [
"unitconverters",
]
EXTRA_JS_MODULES += [
"ActionsProvider.sys.mjs",
"ActionsProviderContextualSearch.sys.mjs",
"ActionsProviderQuickActions.sys.mjs",
"ActionsProviderTabGroups.sys.mjs",
"MerinoClient.sys.mjs",
"QuickActionsLoaderDefault.sys.mjs",
"QuickSuggest.sys.mjs",
"SearchModeSwitcher.sys.mjs",
"UrlbarController.sys.mjs",
"UrlbarEventBufferer.sys.mjs",
"UrlbarInput.sys.mjs",
"UrlbarMuxerUnifiedComplete.sys.mjs",
"UrlbarPrefs.sys.mjs",
"UrlbarProviderAboutPages.sys.mjs",
"UrlbarProviderActionsSearchMode.sys.mjs",
"UrlbarProviderAliasEngines.sys.mjs",
"UrlbarProviderAutofill.sys.mjs",
"UrlbarProviderBookmarkKeywords.sys.mjs",
"UrlbarProviderCalculator.sys.mjs",
"UrlbarProviderClipboard.sys.mjs",
"UrlbarProviderGlobalActions.sys.mjs",
"UrlbarProviderHeuristicFallback.sys.mjs",
"UrlbarProviderHistoryUrlHeuristic.sys.mjs",
"UrlbarProviderInputHistory.sys.mjs",
"UrlbarProviderInterventions.sys.mjs",
"UrlbarProviderOmnibox.sys.mjs",
"UrlbarProviderOpenTabs.sys.mjs",
"UrlbarProviderPlaces.sys.mjs",
"UrlbarProviderPrivateSearch.sys.mjs",
"UrlbarProviderQuickSuggest.sys.mjs",
"UrlbarProviderQuickSuggestContextualOptIn.sys.mjs",
"UrlbarProviderRecentSearches.sys.mjs",
"UrlbarProviderRemoteTabs.sys.mjs",
"UrlbarProviderRestrictKeywords.sys.mjs",
"UrlbarProviderRestrictKeywordsAutofill.sys.mjs",
"UrlbarProviderSearchSuggestions.sys.mjs",
"UrlbarProviderSearchTips.sys.mjs",
"UrlbarProvidersManager.sys.mjs",
"UrlbarProviderTabToSearch.sys.mjs",
"UrlbarProviderTokenAliasEngines.sys.mjs",
"UrlbarProviderTopSites.sys.mjs",
"UrlbarProviderUnitConversion.sys.mjs",
"UrlbarResult.sys.mjs",
"UrlbarSearchOneOffs.sys.mjs",
"UrlbarSearchTermsPersistence.sys.mjs",
"UrlbarSearchUtils.sys.mjs",
"UrlbarTokenizer.sys.mjs",
"UrlbarUtils.sys.mjs",
"UrlbarValueFormatter.sys.mjs",
"UrlbarView.sys.mjs",
]
EXTRA_JS_MODULES["urlbar/private"] += [
"private/AddonSuggestions.sys.mjs",
"private/AdmWikipedia.sys.mjs",
"private/BaseFeature.sys.mjs",
"private/BlockedSuggestions.sys.mjs",
"private/ExposureSuggestions.sys.mjs",
"private/FakespotSuggestions.sys.mjs",
"private/GeolocationUtils.sys.mjs",
"private/ImpressionCaps.sys.mjs",
"private/MDNSuggestions.sys.mjs",
"private/MLSuggest.sys.mjs",
"private/PocketSuggestions.sys.mjs",
"private/SuggestBackendMl.sys.mjs",
"private/SuggestBackendRust.sys.mjs",
"private/Weather.sys.mjs",
"private/YelpSuggestions.sys.mjs",
]
TESTING_JS_MODULES += [
"tests/quicksuggest/MerinoTestUtils.sys.mjs",
"tests/quicksuggest/QuickSuggestTestUtils.sys.mjs",
"tests/quicksuggest/RemoteSettingsServer.sys.mjs",
"tests/UrlbarTestUtils.sys.mjs",
]
BROWSER_CHROME_MANIFESTS += [
"tests/browser-tips/browser.toml",
"tests/browser-tips/suppress-tips/browser.toml",
"tests/browser-updateResults/browser.toml",
"tests/browser/browser.toml",
"tests/browser/browserSidebarRevamp.toml",
"tests/engagementTelemetry/browser/browser.toml",
"tests/quicksuggest/browser/browser.toml",
]
XPCSHELL_TESTS_MANIFESTS += [
"tests/quicksuggest/unit/xpcshell.toml",
"tests/unit/xpcshell.toml",
]
SPHINX_TREES["/browser/urlbar"] = "docs"