Bug: The weather suggestion for a city is no longer displayed if the suggestion for that city was previously clicked
Status: VERIFIED
Priority: P1
Resolution: FIXED
Created: 2024-11-12 14:09:59+00:00
Resolved: 2024-11-18 12:22:35+00:00

**[Affected versions]:**
- Firefox Beta 133.0b7 (Build ID: 20241111092015)

**[Affected Platforms]:**
- Windows 10 x64
- Ubuntu 20.04 x64
- macOS 12.6.1

**[Prerequisites]:**
- Have the Firefox Beta 133 en-* build installed.
- Set `browser.search.region` pref to US. (mandatory use of a VPN client if non-US user).
- Windows ONLY: `Set browser.urlbar.weather.ignoreVPN` pref to true.
- Set `browser.urlbar.weather.featureGate` pref to true.
- Set `browser.urlbar.suggest.quicksuggest.sponsored` pref to true.
- Set `browser.urlbar.suggest.weather` pref to true.
- Have the OS language set to English (US).

**[Steps to reproduce]:**
1. Open the browser with the profile from prerequisites.
2. Type the “miami” keyword in the Address Bar.
3. Click the weather suggestion for Miami.
4. Focus the Address Bar and type “miami” again.
5. Observe the behavior.

**[Expected result]:**
- The weather suggestion for Miami is displayed again.

**[Actual result]:**
- The weather suggestion for Miami is NOT displayed.

**[Notes]:**
- Only the history results are displayed in the Firefox Suggest sections.
- Here is the error from the Browser Console when typing a city name which was previously clicked:
`TypeError: rawUrl: undefined UniFFI.sys.mjs:23:5
URLBar - ProvidersManager: TypeError: rawUrl: undefined
    UniFFITypeError resource://gre/modules/UniFFI.sys.mjs:23
    checkType resource://gre/modules/RustSuggest.sys.mjs:249
    checkType resource://gre/modules/RustSuggest.sys.mjs:403
    functionCall resource://gre/modules/RustSuggest.sys.mjs:2827
    rawSuggestionUrlMatches resource://gre/modules/RustSuggest.sys.mjs:2848
    isURLEquivalentToResultURL resource:///modules/QuickSuggest.sys.mjs:384
    _canAddResult resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:965
    _addResults resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:658
    _fillGroup resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:324
    _fillGroupChildren resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:413
    _fillGroupChildren resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:436
    _fillGroup resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:323
    _fillGroupChildren resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:413
    _fillGroup resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:323
    _fillGroupChildren resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:413
    _fillGroup resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:323
    _fillGroupChildren resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:413
    _fillGroup resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:323
    sort resource:///modules/UrlbarMuxerUnifiedComplete.sys.mjs:185
    _notifyResults resource:///modules/UrlbarProvidersManager.sys.mjs:775
    callback resource:///modules/UrlbarProvidersManager.sys.mjs:758
    promise resource:///modules/UrlbarUtils.sys.mjs:2882
UrlbarProvidersManager.sys.mjs:677:56`
- Here is a [screen recording](https://drive.google.com/file/d/1yYYcivZdK4fDmxr1G5-XldjMcIoy3PDA/view?usp=sharing) of the issue.