Closed Bug 341035 Opened 18 years ago Closed 16 years ago

Livemark service should delete annotations on livemark delete

Categories

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

defect

Tracking

()

RESOLVED FIXED
Firefox 3 beta4

People

(Reporter: brettw, Assigned: mak)

References

Details

(Keywords: privacy, regression)

Attachments

(1 file, 1 obsolete file)

When a livemark is deleted, all the annotations for the items and the folder stay around. This is partially bug 319455 (expire annotations) but the livemark service should do it's annotations explicitly.
Attached patch patch (obsolete) — Splinter Review
Not sure whether this is still necessary with bug 319455 almost ready to go, but figured I'd pop in
Assignee: nobody → cyen
Status: NEW → ASSIGNED
Attachment #271941 - Flags: review?(dietrich)
Plus, currently deleting a folder + undoing the delete loses the folder's annotations - including the description or the livemark's site/feed urls... so the folder's annotations should be saved for sure, anyway.
Bug 319455 shouldn't matter here, as we should always be cleaning up after ourselves :)

However, I think we want to have this done in the back-end, so that it's consistent for all deletes of all item types in the bookmark system (and it's consumers, such as the microsummary and livemark services).
Attachment #271941 - Flags: review?(dietrich) → review-
Assignee: cyen → nobody
Status: ASSIGNED → NEW
Blocks: 387911
387952(In reply to comment #2)
> Plus, currently deleting a folder + undoing the delete loses the folder's
> annotations - including the description or the livemark's site/feed urls... so
> the folder's annotations should be saved for sure, anyway.

Reinstantiation of annotations spun off to bug 387952
Attached patch patchSplinter Review
while investigating on problems with livemark reload i ended up here.

we are checking if a livemark address is in use, but we don't have still removed that, so the check will always return true (and annotations are not deleted). 

As a consequence if i remove a livemark, then readd it back in less then expiration time, it is showed <empty>.

This is bad also because those dangling annos will not let us to delete pages from moz_places (privacy concern).
Assignee: nobody → mak77
Attachment #271941 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #304990 - Flags: review?(dietrich)
Keywords: privacy, regression
Comment on attachment 304990 [details] [diff] [review]
patch

good catch, thanks. r=me
Attachment #304990 - Flags: review?(dietrich) → review+
Priority: -- → P2
Target Milestone: --- → Firefox 3 beta4
Comment on attachment 304990 [details] [diff] [review]
patch

drivers: this fix will help investigating on feed reload problem, and is a privacy concern.
Attachment #304990 - Flags: approval1.9?
Comment on attachment 304990 [details] [diff] [review]
patch

a1.9+=damons
Attachment #304990 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Checking in toolkit/components/places/src/nsLivemarkService.js;
/cvsroot/mozilla/toolkit/components/places/src/nsLivemarkService.js,v  <--  nsLivemarkService.js
new revision: 1.38; previous revision: 1.37
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Blocks: 390505
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: