Keyboard navigation through Awesome Bar suggestions jumps to search providers
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox-esr68 | --- | verified |
| firefox67 | --- | unaffected |
| firefox68 | --- | verified |
| firefox69 | --- | verified |
People
(Reporter: dustin, Assigned: adw)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
|
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-release+
jcristau
:
approval-mozilla-esr68+
|
Details | Review |
|
322.93 KB,
image/gif
|
Details | |
|
3.24 MB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
-
Open a new tab.
-
Type into the address bar. In my case, I'm typing "awesome"
-
Observe the suggestions to contain:
[history entry 1]
[history entry 2]
[history entry 3]
[search suggestion 1]
[search suggestion 2]
[search suggestion 3]
[search icon] [search icon] [search icon] [search icon] [search icon] -
Use the down arrow key to navigate to history entry 3
Actual results:
When I use the down key to navigate to history entry 3, the following happens:
Focus moves to history entry 1. Focus moves to history entry 2.
Focus moves to search icon 1
This failure is intermittent, but is often results in me choosing to search for my partially-completed address input in a random search engine.
Expected results:
Keyboard navigation should work in a reasonable manner.
| Reporter | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
I've seen this happen occassionally, too. It's almost certainly related to the incremental addition of results and/or the key buffering we do for the down arrow. To trigger it, results have to still be loading, so you have to be a little fast.
| Reporter | ||
Comment 2•6 years ago
|
||
I can usually reproduce this regardless of how long I wait before keyboarding.
| Assignee | ||
Comment 3•6 years ago
|
||
I was able to reproduce this twice today so far, after trying. When it happens, the down arrow key skips the search suggestions for as long as the popup remains open.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 4•6 years ago
|
||
When this happens for me, queryContext.results.length is 6 even though the number of results in the popup is 10, here: https://searchfox.org/mozilla-central/rev/8a990595ce6d5ed07ace2d4d5d86cc69aec90bde/browser/components/urlbar/UrlbarController.jsm#272
Wasn't there another recent (fixed) bug about using out-of-date results when the popup contains results from the previous search and the new search?
| Assignee | ||
Comment 5•6 years ago
|
||
Bug 1554038 is the one I was thinking of
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 9•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 10•6 years ago
|
||
Comment on attachment 9075250 [details]
Bug 1559179 - Quantumbar: Fix keyboard navigation when stale results are present.
Beta/Release Uplift Approval Request
- User impact if declined: Quantumbar debuts in 68, so it would be nice to fix this in 68. This bug affects users who use the keyboard to select results in the quantumbar popup.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: This bug is hard to manually reproduce. The automated works similarly to the following STR fwiw. On Nightly:
- Type "m" in the urlbar. A list of Mozilla-related sites should appear in the urlbar popup.
- Delete/backspace the m
- Type "mo" and quickly press the down arrow key so that the second result in the popup becomes selected. However, don't press the down arrow key so quickly that only 6 results appear in the popup; 10 results should appear.
- Keep pressing the down arrow key to select each result, until you get to the search buttons.
Expected: You should be able to select all results in the popup. No results should be skipped.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Very small patch, well understood, comes with test.
- String changes made/needed: None
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Please see above
- User impact if declined: Please see above
- Fix Landed on Version: 69
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Please see above
- String or UUID changes made by this patch: None
Updated•6 years ago
|
Comment 11•6 years ago
|
||
I successfully reproduced the issue on Firefox Nightly 69.0a1 (2019-06-13) under Windows 10 (x64) using the STR from Comment 10.
The issue is no longer reproducible on latest Nightly 69.0a1 (2019-07-03). Tests were performed under Windows 10 (x64), Ubuntu 18.04 (x64) and macOS 10.12.
Comment 12•6 years ago
|
||
Comment on attachment 9075250 [details]
Bug 1559179 - Quantumbar: Fix keyboard navigation when stale results are present.
This is already on m-b.
Comment 13•6 years ago
|
||
Comment on attachment 9075250 [details]
Bug 1559179 - Quantumbar: Fix keyboard navigation when stale results are present.
quantumbar fix, verified in nightly, with tests, approved for 68 rc2
Comment 14•6 years ago
|
||
| bugherder uplift | ||
Comment 15•6 years ago
|
||
| bugherder uplift | ||
| Reporter | ||
Comment 16•6 years ago
|
||
I did reproduce this on Nightly 69.0a1 (2019-07-04) Windows x64, which is the latest available to me. It required slightly longer input than "m", "mo", but it did reproduce every time I tried for some specific awesomebar inputs. This is true regardless of how long I wait to perform keyboard selection.
Comment 17•6 years ago
|
||
Hi Dustin, I tried again on Nightly 69.0a1 (2019-07-05) under Windows 10 x64 and I couldn't reproduce it with "m", "mo". Could you please tell me the exact steps on which it did reproduce to you? Thanks!
| Reporter | ||
Comment 18•6 years ago
|
||
Hey Catalin,
Thanks. I've attached a GIF of my repro case. I have, in my history, a few entries for a github project called Microsoft/WSL-DistroLauncher. I was attempting to navigate to it by typing in wsl-di.
When I enter wsl-di, I get a few results of interest and one search engine result above the rest (perhaps I visited it at some point). Keyboarding down through the list exhibits the same behavior as I initially reported in this bug.
| Assignee | ||
Comment 19•6 years ago
|
||
Thanks Dustin. I can't reproduce the problem normally, but I can when I introduce some artificial latency. There's another problem that my patch didn't fix. I'll file a new bug for it.
| Assignee | ||
Comment 20•6 years ago
|
||
We need to update indices after removing stale rows.
Comment 21•6 years ago
|
||
Comment on attachment 9076326 [details]
Bug 1559179 - Quantumbar: Fix keyboard navigation after stale results have been removed.
Revision D37142 was moved to bug 1563812. Setting attachment 9076326 [details] to obsolete.
Updated•6 years ago
|
Comment 22•6 years ago
•
|
||
Given the fact that the reproduction STR for this bug on an affected build (69.0a1 20190613095633) were intermittent, I've reused a modified profile that has very long URL browsing history (check here the details: https://bugzilla.mozilla.org/show_bug.cgi?id=1540861#c13) and with that profile, I can reproduce this report reliably with the following STR without any timing prerequisite, which I further used to verify the fixes:
[Steps:]
- Start Fx with the attached profile.
- (baseline)In address bar type "freakinghugeurl".
- (baseline)Using down-arrow key to navigate throughout the results.
- Open a new tab and type "freaking": the 1st suggestion should be freaking
- Down-arrow key and select it, afterwhich continue writing hugeurl (now the addressbar will be: freakinghugeurl)
- Down-arrow key to navigate through the results.
[Actual Result:]
70.0a1 20190716211651, all good: step 3 and 6 navigate through all results.
69.0b5 20190715173502, still reproducible (the last results are skipped)
68.0 2019-07-05, still reproducible (the last results are skipped)
68.0esr 2019-07-05, still reproducible (the last results are skipped)
Environments: Ubuntu 16.04 and Mac 10.14.
(didn't test on Win10 since that OS was covered already and I don't think this is OS dependent)
I'm guessing, the attached profile is catching also bug 1563812? That would explain why 70 works properly and <70 still exhibit the issue.
I'm uncertain how to proceed with marking the flags for this issue, since IMO, if the above testing approach is correct bug 1563812 seems to be necessary to fully verify this.
Drew, can you take a look over the above and advise?
| Assignee | ||
Comment 23•6 years ago
|
||
Thanks for your detailed work in verifying these bugs, Adrian. I tried the profile, and I can verify that it and the STR are hitting bug 1563812, not this bug, correct.
As for setting flags, the two bugs have the same outward appearance, but they have different causes. Your profile and STR nicely verify that bug 1563812 has been fixed, since they specifically hit that bug and not this bug. For this bug, the STR in comment 10 should be able to verify, since they specifically hit this bug.
If it would help, I can make a couple of custom builds with visual cues that would help verifying both bugs. It wouldn't be much work.
Comment 24•6 years ago
|
||
Got it and thanks Drew! I think custom builds would be overkill for this verification.
Related to the STR in comment 10, I didn't use them right from the start due to the fact that the STR are timing dependent and usually for verification purposes, I want, as much as possible, to exclude from the scenarios used for reproducibility/verification the ones that involve timings, because those can be easily misleading.
Given comment 23, I think that it's fine to verify this issue fixed using comment 10 STR. Therefore I rechecked the affected build 69.0a1 20190613095633 as a reproducibility baseline, then verified this issue as fixed on:
Windows 10, Ubuntu 16.04, Mac 10.14
68.0 2019-07-05
68.0.1esr 2019-07-17
69.0b5 2019-07-15
Updated•6 years ago
|
Updated•4 years ago
|
Description
•