• TheAnonymouseJoker@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    2
    ·
    3 years ago

    Quoting from source code comment:

    Sets the appropriate Firefox Suggest scenario based on the current Nimbus

    • rollout (if any) and “hardcoded” rollouts (if any). The possible scenarios
    • are:
    • history
    • This is the scenario when the user is not in any rollouts. Firefox
    • Suggest suggestions are disabled.
    • offline
    • This is the scenario for the “offline” rollout. Firefox Suggest
    • suggestions are enabled by default. Search strings and matching keywords
    • are not included in related telemetry. The onboarding dialog is not
    • shown.
    • online
    • This is the scenario for the “online” rollout. The onboarding dialog will
    • be shown and the user must opt in to enable Firefox Suggest suggestions
    • and related telemetry, which will include search strings and matching
    • keywords.

    Related source code:

    async _updateFirefoxSuggestScenarioHelper() { let scenario = this._nimbus.quickSuggestScenario; if (!scenario) { await Region.init(); if ( Region.home == “US” && Services.locale.appLocaleAsBCP47.substring(0, 2) == “en” ) { // offline rollout for en locales in the US region scenario = “offline”; } else { // no rollout scenario = “history”; } }

    I think this should be self explanatory.