mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Bug 329524 r=joe.hughes ReplaceItem bookmark call doesn't update cache.
This commit is contained in:
parent
a7070827d6
commit
3bf94f4f67
@ -930,6 +930,13 @@ nsNavBookmarks::ReplaceItem(PRInt64 aFolder, nsIURI *aItem, nsIURI *aNewItem)
|
||||
rv = transaction.Commit();
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// update the bookmark hash, something could have gone away, and something
|
||||
// else could have been created
|
||||
rv = UpdateBookmarkHashOnRemove(childID);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
rv = AddBookmarkToHash(newChildID, 0);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
ENUMERATE_WEAKARRAY(mObservers, nsINavBookmarkObserver,
|
||||
OnItemReplaced(aFolder, aItem, aNewItem))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user