Style tail suggestions differently
Categories
(Firefox :: Address Bar, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: mak, Assigned: bugzilla)
References
(Blocks 2 open bugs)
Details
(Keywords: parity-chrome)
Attachments
(1 file)
Tail suggestions are slightly different from common ones, we may want to style them differently.
Additionally some search suggestions start with an = to indicate they are result of an operation, others may be results of a conversion (currency or unit of measure). The latter may not currently be available to Firefox as a tail suggestion.
We would like to style these results differently to indicate they are special.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
For tail suggestions in particular (very long ones), it's suggested we show them as
[ what time is it in I ]
| …Italy |
| …Illinois |
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Engineering spoke to UX and we're going to do exactly what Marco suggests in comment 1.
Assignee | ||
Comment 3•5 years ago
|
||
Bumping the points on this since this matching won't always be as easy as the illustration in comment 1. The screenshot in bug 1636696 shows that words in the tail can change, which will require some new string matching behaviour.
I'm going to approach this by rendering the unseen part of the suggestion and then hiding it. Another approach is to measure the length of the unseen part of the string and then offsetting, but that would require waiting for document flush and we don't want to take that performance hit.
Assignee | ||
Comment 4•5 years ago
|
||
Some intriguing tail suggestion cases and how Chrome lines them up:
london sights in l
london
hobbit holes for sale in o
hole for sale in oregon
hobbit hes for sle in o
homes for sale in ontario
hobbit hes for sle in om
homes for sale in omaugh ontario
hobbit hes for sle in hom
homes for sale in homes for sale
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D74739
Comment 7•5 years ago
|
||
Backed out for xpcshell perma failures on test_search_suggestions_tail.js.
Failurel log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=302462835&repo=autoland&lineNumber=9190
Backout: https://hg.mozilla.org/integration/autoland/rev/4ca082adb91d5fdd84fe8d361dd064e42d2f4edc
Comment 9•5 years ago
|
||
bugherder |
Assignee | ||
Updated•5 years ago
|
Description
•