User:Sspitzer/GlobalFrecency: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


when you remove a bookmark, should the frecency change for that place?  yes, it should, as we gave weight to bookmarks.  RemoveItem() calls UpdateBookmarkHashOnRemove() with the place id, so we do this work there.  Note, if you remove a folder, we will eventually call RemoveItem(), so that's how this works with removing folders.
when you remove a bookmark, should the frecency change for that place?  yes, it should, as we gave weight to bookmarks.  RemoveItem() calls UpdateBookmarkHashOnRemove() with the place id, so we do this work there.  Note, if you remove a folder, we will eventually call RemoveItem(), so that's how this works with removing folders.
3)
on calculating frecency, if we don't know ahead of time, we need to check that for a place id, if it is bookmarked, but not a livemark.  see CalculateFrecency() [not CalculateFrecencyInternal()]

Revision as of 05:45, 28 December 2007

notes:

1)

unvisited bookmarks are no longer hidden, but unvisited livemark items are. this happens in nsNavBookmarks::InsertBookmark(), where we call UpdateFrecencyAndHiddenForBookmark(), but only if the parent is not a livemark

2)

when you remove a bookmark, should the frecency change for that place? yes, it should, as we gave weight to bookmarks. RemoveItem() calls UpdateBookmarkHashOnRemove() with the place id, so we do this work there. Note, if you remove a folder, we will eventually call RemoveItem(), so that's how this works with removing folders.

3)

on calculating frecency, if we don't know ahead of time, we need to check that for a place id, if it is bookmarked, but not a livemark. see CalculateFrecency() [not CalculateFrecencyInternal()]