The Address Bar drop down flickers when the weather keywords are typed or deleted
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
People
(Reporter: cfat, Assigned: adw)
References
Details
Attachments
(1 file)
[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.regionpref to US. (mandatory use of a VPN client if non-US user). - Windows ONLY:
Set browser.urlbar.weather.ignoreVPNpref to true. - Set
browser.urlbar.weather.featureGatepref to true. - Set
browser.urlbar.suggest.quicksuggest.sponsoredpref to true. - Set
browser.urlbar.suggest.weatherpref to true. - Have the OS language set to English (US).
[Steps to reproduce]:
- Open the browser with the profile from prerequisites.
- Type “la ca weather” keyword in the Address Bar.
- Delete a few characters.
- Observe the behavior.
[Expected result]:
- The Address Bar drop down doesn’t flicker.
[Actual result]:
- The Address Bar drop down flickers each time a new character is typed or deleted.
[Notes]:
- Here is a screen recording of the issue.
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Thanks Carmen. This is probably due to latency of fetching the suggestion from Merino. I can sometimes reproduce it but it's never this bad for me. If we cache the Merino response during the urlbar session, as you're typing the city's name character by character, that should fix it.
| Assignee | ||
Comment 2•1 year ago
|
||
This adds some simplistic caching for weather suggestions, just like we have
simplistic caching for geolocation. That fixes the bug by avoiding latency when
calling Merino while you're typing a long query that keeps matching the same
suggestion again and again.
Instead of duplicating the caching logic from geolocation, I moved it into
MerinoClient so that both geolocation and weather can use it, and potentially
other features in the future.
Since caching interferes with tests that don't expect it, I added a simple way
to disable it during tests. MerinoTestUtils sets a static property on
MerinoClient called _test_disableCache. I added a test that specifically
tests the cache so we can be sure it works right.
Depends on D228755
Comment 4•1 year ago
|
||
| bugherder | ||
Comment 5•1 year ago
|
||
The patch landed in nightly and beta is affected.
:adw, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox133towontfix.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
| Reporter | ||
Comment 6•1 year ago
|
||
I tried to verify this issue on the latest Firefox Nightly 134.0a1 (Build ID 20241115093447) on Windows 10, macOS 12.6.1, and Ubuntu 20.04 x64, but I can still see the Address Bar flickering intermittently.
- The patch did improve the overall experience, but I am still able to reproduce it occasionally (please see the video).
Not sure if this might be related, but please keep in mind that I need to connect to a VPN in order to trigger the weather suggestion (I’ve reproduced this with 2 different VPN clients).
Drew, could you please take a look at this?
| Assignee | ||
Comment 7•1 year ago
|
||
Hmm thanks. I'm not sure what the problem is. I'll clone this bug since it's not totally fixed, but first, could you set browser.urlbar.loglevel to Debug, trigger the problem a few times by typing "ny ny weather", open the browser console and filter on weather, and post the output here?
| Reporter | ||
Comment 8•1 year ago
|
||
Sure thing. The weather logs are in this Gdoc. Let me know if you need any other information.
| Assignee | ||
Comment 9•1 year ago
|
||
Thanks Carmen. I'm hoping bug 1931811, which speeds up matching, also helped. It was a fix to the Rust component, which I vendored in to mozilla-central in bug 1932496, which just landed on mozilla-central. Once bug 1932496 is in Nightly (might take another day), could you try reproducing this again please?
The log is kind of strange because it shows this being logged again and again:
QuickSuggest.SuggestBackendRust: Adding type to query: 'Weather'
But in most cases there's no Handling query or Tokenizer: Tokenizing search string "ny ny weather" messages before that, which there should be. It almost seems like a copy-paste error or something. Aside from that, the log pretty much looks like what I'd expect and confirms this bug's fix is working as intended.
| Reporter | ||
Comment 10•1 year ago
|
||
I have verified this issue on the latest Firefox Nightly 135.0a1 (Build ID: 20241128215411) and Beta 134.0b2 (Build ID: 20241127093757) on Windows 10, macOS 12.6.1 and Ubuntu 20.04 x64.
- I am no longer able to reproduce the issue, the Address Bar drop-down no longer flickers when the weather keywords are typed or deleted.
I think it's safe to mark this issue as Verified. If we encounter it again in the future, we will file a new bug report.
| Reporter | ||
Updated•1 year ago
|
Description
•