Address bar flickers when suggestions are removed after "Show less frequently"
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox-esr115 | --- | unaffected |
firefox117 | --- | wontfix |
firefox118 | --- | wontfix |
firefox119 | --- | affected |
People
(Reporter: aflorinescu, Unassigned)
References
Details
(Whiteboard: [sng-scrubbed][search-papercut])
Attachments
(1 file, 1 obsolete file)
1.41 MB,
video/mp4
|
Details |
Found in
- 118.0b9 (treeherder)
Affected versions
- 118.0b9 (treeherder)
- 119.0a1 (2023-09-13)
Tested platforms
- Affected platforms: Windows 10, Mac 13, Ubuntu 22
Preconditions
browser.search.region
set to USbrowser.urlbar.pocket.featureGate
to true for pocket suggest
Steps to reproduce
- Open new tab, type 'tts' into address bar (for addon suggestions)
1'. Open new tab, type 'breakfast' into address bar (for pocket suggestions) - Using the results menu use Show less frequently 3 times.
- Dissmiss and refocus address bar.
Expected result
- Address bar suggestions should not contain either the addon suggestion (1) or the pocket suggestion(1')
Actual result
- For addon suggestion the issue is more visible, since the addon suggestion flickers while it is removed from the suggestions.
1'. For the pocket suggestion, is less visible since there is only the last row removed and repopulated with a search suggestion.
Regression range
- Not a regression.
Reporter | ||
Comment 1•1 year ago
|
||
Comment 2•1 year ago
|
||
:aflorinescu, if you think that's a regression, could you try to find a regression range using for example mozregression?
Reporter | ||
Comment 3•1 year ago
•
|
||
Maybe a bit nitty, but figured we should ask: in all the cases in which the address results are modified: not relevant/not interested/show less frequent, when the addressbar suggestions will contain one less result and the address bar is refocused, it will cause the address bar to flicker while adding the missing result -> I believe it might on the lines of the same problem fixed in bug 1852300.
Drew, thoughts? Should we add bugs for each case?
Comment 4•1 year ago
|
||
Thanks for filing this! It's a valid bug but we won't be able to fix it for 118, and since it's only visual flicker, I think that's fine. I've updated the summary:
- This applies to weather suggestions too -- any type of suggestion with the "Show less frequently" command.
- You only need to click "Show less frequently" once, close the urlbar panel, and reopen it.
Technical details:
The problem is "Show less frequently" does not remove the row from the view or the cached query context, so when then view reopens, the suggestion briefly reappears, and then when the new search finishes and the view updates itself, it removes the row. Everything is working as designed, but unfortunately it causes flickering.
The UX spec for "Show less frequently" says the row should remain in the view immediately after using the command, along with a "thanks for your feedback" message, so we can't remove it immediately. We'll need to either wait to remove it when the view closes, or probably a better idea is to immediately tell the view not to reuse the row when it reopens.
There are two code branches to account for. The second branch uses the context cache and is easy to fix: We can immediately invalidate the cache when "Show less frequently" is used. The first branch reuses the rows as they are. I guess we'll need to add a flag to the view to tell it not to do that, I'm not sure.
Reporter | ||
Comment 5•1 year ago
•
|
||
(In reply to Drew Willcoxon :adw from comment #4)
Thanks for filing this! It's a valid bug but we won't be able to fix it for 118, and since it's only visual flicker, I think that's fine.
Thank you Drew. We were also having second thoughts of getting this fixed so late for 118 and we're better play safe than sorry on this one. Marking 118 based on comment#4 and resetting the flags for 117 aswell.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•9 months ago
|
||
This applies to all suggestion types.
Updated•9 months ago
|
Description
•