Closed
Bug 1394801
Opened 4 years ago
Closed 4 years ago
No onItemAnnotationRemoved updates with async PlacesTransactions
Categories
(Toolkit :: Places, enhancement, P1)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [fxsearch])
Attachments
(1 file)
In bug 1393771 I'm trying to re-order our tests. I've discovered that onItemAnnotationRemoved is not being triggered in the case where we're attempting to bookmark a Livemark, and then cancelling the dialog. In turn, this leads to the livemark cache being out of sync, which can mess up the UI in other ways (e.g. not allow a bookmark folder to be moved via drag/drop). If I turn off async places transactions, then it works fine.
Updated•4 years ago
|
Priority: -- → P1
Whiteboard: [fxsearch]
| Comment hidden (mozreview-request) |
Comment 2•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8902306 [details] Bug 1394801 - Ensure livemarks are removed from the PlacesUIUtils livemark cache with async PlacesTransactions turned on. https://reviewboard.mozilla.org/r/173838/#review179486 ::: browser/components/places/PlacesUIUtils.jsm:65 (Diff revision 1) > + ]), > > onItemAnnotationSet(itemId, annoName) { > if (annoName == LIVEMARK_ANNO) > self.ids.add(itemId); > }, I think we could completely remove the dependency on nsIAnnotationObserver, and use onItemChanged checking the isAnno and name arguments. We should never remove the livemark annotation from a folder, only add it. Another advantage is that it would give us the guid, that anno notifications are missing. ::: browser/components/places/PlacesUIUtils.jsm:77 (Diff revision 1) > > + // Ci.nsINavBookmarkObserver items. > + > + onItemRemoved(itemId) { > + // Since the bookmark is removed, we know we can remove any references > + // to it from the catch. typo: "catch"
Attachment #8902306 -
Flags: review?(mak77) → review+
| Comment hidden (mozreview-request) |
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c178d9e31307 Ensure livemarks are removed from the PlacesUIUtils livemark cache with async PlacesTransactions turned on. r=mak
Updated•4 years ago
|
Status: NEW → ASSIGNED
Pushed by kwierso@gmail.com: https://hg.mozilla.org/mozilla-central/rev/5ce04b2110b3 Ensure livemarks are removed from the PlacesUIUtils livemark cache with async PlacesTransactions turned on. r=mak
Comment 6•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5ce04b2110b3
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•