Closed Bug 375629 Opened 17 years ago Closed 17 years ago

The annotations of an item (bookmark/folder) must be removed when the item itself is removed

Categories

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

defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha5

People

(Reporter: asaf, Assigned: asaf)

References

Details

(Keywords: privacy)

Attachments

(1 file)

The annotations of an item (bookmark/folder/history item) must be removed when the item itself is removed.
OS: Mac OS X → All
Hardware: PC → All
taking, per dietrich.
Assignee: nobody → sspitzer
this patch only deal with bookmarks annotations not with history annotations.

even if you will decide to do the remove annotations in nsNavBookmarks.cpp
this patch contain more fixes that need your approval
if you want i can split this patch 

changes list
===================================================================
PlacesCreateFolderTransaction undoTransaction:
  remove folder annotations.
  fixes typo in _childItemsTransactions loop.
  remove the folder after undoing its _childItemsTransactions.

PlacesCreateItemTransaction undoTransaction:
  remove annotations.
  remove keyword.
  remove the item after undoing its _childTransactions.

PlacesCreateSeparatorTransaction doTransaction:
  save the new separator index if we passe new index as -1 we can't undo the transaction without a valid index.
          
PlacesCreateLivemarkTransaction undoTransaction:
  remove annotations.

PlacesMoveItemTransaction doTransaction/undoTransaction:
  move keyword.
  remove old item keyword and annotations if the we have new ID.

PlacesRemoveFolderTransaction doTransaction:
  save and remove annotations.
  don't remove children for livmark here we do it in nsILivemarksService::deleteLivemarkChildren.

PlacesRemoveFolderTransaction undoTransaction:
   restore annotations and if the folder is livemark reloadLivemarkFolder.
   also chaned nsILivemarksService::reloadLivemarkFolder to update livemark internal table.

PlacesRemoveItemTransaction doTransaction:
  save and remove keyword.
  remove annotations.

PlacesRemoveItemTransaction undoTransaction:
  restore keyword.
  restore annotations.

PlacesSetLoadInSidebarTransaction doTransaction:
  cleanup.

PlacesEditItemDescriptionTransaction undoTransaction:
  fixes hasAnnotation is not a function of this.utils.

PlacesEditBookmarkMicrosummaryTransaction doTransaction/undoTransaction:
  cleanup.

PlacesSetBookmarksToolbarTransaction
  fixes typo, also fixes the PlacesUtils.toolbarFolderId getter
Attachment #263850 - Flags: review?(mano)
Comment on attachment 263850 [details] [diff] [review]
proposing patch ver 1

We'll do this on the back-end side once we switch over to ID-based annotations, see dependency.
Attachment #263850 - Flags: review?(mano) → review-
did you looked at the other fixes ?
if you want i can post all the other fixes to new bug
Please do, thanks.
Assignee: sspitzer → mano
Priority: -- → P2
Target Milestone: Firefox 3 alpha4 → Firefox 3 alpha5
This is fixed now for item item-annotations (bookmarks & folders), I'm leaving the history-annotations part of this bug to bug 319455.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Summary: The annotations of an item (bookmark/folder/history item) must be removed when the item itself is removed → The annotations of an item (bookmark/folder) must be removed when the item itself is removed
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: