Suggestions take 2s to appear after pasting into search field

NEW
Unassigned

Status

()

defect
P3
normal
Rank:
35
4 years ago
4 years ago

People

(Reporter: shobson, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fxsearch])

Steps to reproduce:

1) empty the search field
2) leave firefox
3) write a phrase you with to search for out somewhere
4) copy it
5) go to firefox
6) place your cursor in the search field instead of the awesome bar
7) paste
8) press tab

What happens: window gets focus
What I expect to happen: menu with custom search providers opens with first option selected
It sounds like the issue is that we wait for the suggestion results to come back after pasting the text and before opening the panel, and that can take a little while. If you unfocus the search bar in the mean time (your step 8), then the panel opening is canceled.

It's not clear how to best fix this - if we show the panel before the results come in, then there's an awkward adjustment as the suggestions "pop in" to view.
There may be something going on that is not just waiting for search results. If I paste a term and wait, it takes about 2 seconds to return the suggestions whereas if I paste a term and press space I get the suggestions almost immediately.

The search results have a max-height/max-results. I think, in response to pressing tab, you could open the results panel assuming the max results and leave the space blank/show a loading indicator. If the user continues typing, you can resize it as results come in.
(In reply to Stephanie Hobson [:shobson] from comment #2)
> There may be something going on that is not just waiting for search results.
> If I paste a term and wait, it takes about 2 seconds to return the
> suggestions whereas if I paste a term and press space I get the suggestions
> almost immediately.

I can reproduce this, and there's something we should investigate there.
 
> The search results have a max-height/max-results. I think, in response to
> pressing tab, you could open the results panel assuming the max results and
> leave the space blank/show a loading indicator. If the user continues
> typing, you can resize it as results come in.

This is complicated for a tiny edge case. I think if we could figure out why suggestions take 2s to appear, you would almost never run into this case again.
Priority: -- → P3
Summary: After pasting into search field I can't tab to alternative search providers → Suggestions take 2s to appear after pasting into search field
Whiteboard: [fxsearch]
That would certainly fix my problem :)
Rank: 35
You need to log in before you can comment on or make changes to this bug.