Closed Bug 333450 Opened 19 years ago Closed 19 years ago

Add index value for result nodes

Categories

(Firefox :: Bookmarks & History, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 2 alpha2

People

(Reporter: brettw, Assigned: brettw)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Result nodes should have an integer field that we can use for indices in the case of bookmark queries, and priority values in the case of history queries. This will simplify some of the bookmark handling code and allows sorting by priority in the future.
Priority: -- → P2
Target Milestone: --- → Firefox 2 alpha2
Blocks: 330637
Summary: Add index/priority value for result nodes → Add index value for result nodes
Attached patch PatchSplinter Review
This adds the bookmarkIndex property to all result nodes. This is valid for all items inside bookmark folders. The sorting is also updated so that you can sort by bookmark index (no sorting) when viewing a folder. I changed the way separators are handled. It used to be that separators were removed when folders are sorted. This new code allows the items to be sorted by index to reset, so we can't delete them. Instead, the tree view filters them out when it notices sorting is different. I removed the OnItemMoved notification which I noticed is never called. Instead, the bookmarks service sends a remove and an add notification, which should be sufficient. I also added a clarification in the comments for the favicon service.
Attachment #218199 - Flags: review?(bugs)
Fixed on branch and trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: