fune/browser/components/urlbar/private
Drew Willcoxon ee3004c674 Bug 1817038 - Move weather suggestion keywords to Nimbus. r=daisuke
This reverts the changes from D168757 bug 1814795 related to remote settings. It
moves the weather keywords from the config in remote settings to a new Nimbus
variable called `weatherKeywords`. Bug 1817038 has more context.

It also adds another variable called `weatherKeywordsMinimumLength` that lets
the user type prefixes of the keywords instead of the full strings. This is
similar to how sponsored and Wikipedia suggestion keywords contain prefixes,
except here Firefox is computing the prefixes from the full keywords instead of
assuming that the prefixes are in the keyword data.

It also removes the `weather.zeroPrefix` pref added in D168757. Instead, the
weather suggestion is triggered on zero prefix if a Nimbus experiment isn't
active or if the experiment doesn't define `weatherKeywords`.

Finally, it makes one unrelated change: The user's search string can now contain
trailing spaces and still match a weather keyword. I don't think it makes sense
for the weather suggestion to be shown when you type "weather" but then it goes
away after you type a space.

Differential Revision: https://phabricator.services.mozilla.com/D169977
2023-03-03 23:51:54 +00:00
..
BaseFeature.sys.mjs Bug 1799264 - Refactor QuickSuggest features [Part 3]: Port the remote settings client to BaseFeature. r=daisuke 2022-11-08 05:42:10 +00:00
BlockedSuggestions.sys.mjs
ImpressionCaps.sys.mjs Bug 1806306 - Convert AsyncShutdown imports to direct ES imports. r=mak,webdriver-reviewers,application-update-reviewers,bytesized 2022-12-23 12:37:06 +00:00
RemoteSettingsClient.sys.mjs Bug 1817038 - Move weather suggestion keywords to Nimbus. r=daisuke 2023-03-03 23:51:54 +00:00
Weather.sys.mjs Bug 1817038 - Move weather suggestion keywords to Nimbus. r=daisuke 2023-03-03 23:51:54 +00:00