Closed Bug 1185038 Opened 10 years ago Closed 10 years ago

Include/Suggest bookmarks in in-browser search results

Categories

(Firefox for iOS :: Data Storage, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---
fxios-v4.0 --- fixed

People

(Reporter: aaronmt, Assigned: rnewman, Mentored)

References

Details

(Whiteboard: relnote)

Attachments

(3 files)

Currently we cease to suggest bookmarks are clearing private data Visit http://techmeme.com Add it as a bookmark Type 'tech', see it suggested Clear Private Data Type 'tech', see it not suggested Reproducible on master (2531f5)
We only suggest history.
Morph?
Summary: Bookmarks are not suggested after Clearing Private Data → Search suggest bookmarks
This will involve touching the getFilteredSites* queries, figuring out how bookmarks affect frecency, where to put bookmarks that have no visits, and also badging results with a star.
Component: General → Data Storage
Hardware: ARM → All
Summary: Search suggest bookmarks → Include bookmarks in Awesomebar results and domain autocompletion
Keywords: reproducible
Targeting 1.0.x would be my preference, but could fall back to 1.1 :)
See also Bug 1185543 for showing remote tabs.
Pains me we don't have this yet but 2.0-
Mentor: rnewman
Rank: 3
Depends on: 1201110
Dependency resolved/re-summarize so I can find this better
Summary: Include bookmarks in Awesomebar results and domain autocompletion → Include/Suggest bookmarks in in-browser search results
See Also: → 1253656
Assignee: nobody → randersen
Attached image search-Bookmarks-2.png
Surface Bookmarks to the top of the list, in order of last-accessed if there are multiple results. Add Bookmark star to cell, vertically centered, 16px from right edge. Truncate long titles with an ellipsis if they reach within 16px to the left of the Bookmark star.
Assignee: randersen → nobody
Robin: what's the limit on returned bookmarks? E.g., if I search for "http", at what point should we split and start showing history?
(In reply to Richard Newman [:rnewman] from comment #12) > Robin: what's the limit on returned bookmarks? E.g., if I search for "http", > at what point should we split and start showing history? I think 5 is sufficient. That's enough to fill the viewport on our smallest supported device when the keyboard drops on tap and isn't overwhelming.
I've got this done apart from showing the star in results and excluding bookmarks from the subsequent history rows.
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Blocks: 1168849
Attached file Pull req.
I noticed that table rows have an accessory view already, so I skipped the heavyweight approach in Bug 1168849 and decided to use that. The data access part of this isn't 100% polished: * We don't seem to retrieve favicons correctly. * We don't de-dupe bookmarks on URL. * We don't decorate history items that are bookmarked but aren't in the initial bookmark set (part of Bug 1168849's scope). * We don't de-dupe history items that are also in the initial bookmark set, so they can be shown twice. I don't know if those limitations should stop us landing this -- it's better than nothing, but fixing those might involve another database change. We could land in two parts.
Attachment #8734959 - Flags: review?(etoop)
Robin gave ui+ over IRC. Tested on 5S and 6+.
Note that another way of doing this storage-wise is to FULL OUTER JOIN bookmarks to history, rather than to union two subqueries. That'd fix some of those limitations, with some cost and some edge cases (e.g., what do we GROUP BY on?).
Comment on attachment 8734959 [details] [review] Pull req. Sorry for the delayed review. just a couple of nits. LGTM.
Attachment #8734959 - Flags: review?(etoop) → review+
Thanks, Emily! I'll file follow-ups for anything I don't address immediately.
I'm just wrapping this up with a commit that fetches icons.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.0
Whiteboard: relnote
Blocks: 1261926
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: