Closed Bug 1830896 Opened 1 year ago Closed 1 year ago

The weather suggestion is not triggered for non-US regions

Categories

(Firefox :: Address Bar, defect)

Desktop
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox114 --- affected

People

(Reporter: cfat, Unassigned)

References

Details

[Affected versions]:

  • Firefox Nightly 114.0a1 (Build ID: 20230501093846)

[Affected Platforms]:

  • Windows 10 x64
  • Linux Ubuntu 20.04 x64
  • macOS 12.4

[Prerequisites]:

  • Have a VPN client connected to a GB or ES server (make sure the browser.search.region pref is set accordingly).
  • Have the Firefox Nightly 114.0a1 build installed.
  • Have the nimbus.debug pref set to true.
  • Switch to the Stage environment using the RS add-on.
  • (Windows only) Have the devtools.chrome.enabled pref set to true.

[Steps to reproduce]:

  1. Open the browser from the prerequisites.
  2. Copy and paste the following link into a new tab:
    about:studies?optin_slug=qa-zero-prefix-weather-suggestions&optin_branch=treatment-a&optin_collection=nimbus-preview
  3. Close the “about:studies” tab.
  4. (Windows only) Run the following snippet in the Browser Console: link.
  5. Open a new tab.
  6. Type the “weather” string in the Address Bar.
  7. Observe what happens next.

[Expected result]:

  • The weather suggestion is displayed in the Address Bar drop-down.

[Actual result]:

  • The weather suggestion is not displayed.

[Notes]:

  • The weather suggestion is displayed if the VPN client is connected to a US server.
  • Here are the logs from the Browser Console when reproducing the issue: logs.
  • This issue is also reproducible when trying to trigger the weather result via zero-prefix panel.
  • Here is the screen recording of the issue.

Hi Carmen, I don't have access to a GB or ES VPN server so I can't try this myself. Could you please set browser.urlbar.loglevel to Debug, clear the browser console, run the snippet in the link, and copy-paste the output so I can see it? Firefox will try to fetch the suggestion when you toggle weather off and on, which the snippet does, so the logs that are generated at that time will help me see if the fetch was successful or not.

Flags: needinfo?(cfat)

Ah sorry, I posted that before I watched your video. Thanks for posting the whole video, it was very helpful.

It looks like Firefox never tried to fetch the weather suggestion at all. That's probably because the weather suggestion is enabled only if the entire Firefox Suggest (quick suggest) feature is enabled, and the entire Suggest feature is enabled only in the US. When you restarted Firefox with GB, it saw it's not in the US, so it left Suggest turned off. That is the expected behavior right now, and we will enable weather suggestions only in the US in the near future.

If you set browser.urlbar.quicksuggest.enabled, then Firefox should fetch the suggestion at that point, and you should see "Fetching suggestion" logged in the console. I think you can do it before or after running the snippet, it shouldn't matter. It's possible that AccuWeather doesn't provide suggestions for whatever local area the VPN server is in. But at least you should see "Fetching suggestion" and other related logs from "Weather" in the console.

Thank you, Drew, I was able to trigger the weather suggestion by setting the browser.urlbar.quicksuggest.enabled pref to true. I can also confirm that the result shows the temperature in Celsius as long as the OS language is also set to a non-US language.

Regions tested using the VPN client: GB, ES, and CA.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(cfat)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.