Closed Bug 1473382 Opened 6 years ago Closed 6 years ago

Ensure the mirror correctly fires change notifications for livemark annos

Categories

(Firefox :: Sync, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: lina, Assigned: lina)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We're slowly removing annotations, but, in the meantime, errors like this (seen in the logs in bug 1472963) only add noise:

> 1529394434486	Sync.Engine.Bookmarks.Mirror	WARN	Error notifying observer: [Exception... "Not enough arguments [nsIAnnotationObserver.onItemAnnotationSet]"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: resource://gre/modules/SyncedBookmarksMirror.jsm :: notifyObserver :: line 4659"  data: no] Stack trace: notifyObserver()@resource://gre/modules/SyncedBookmarksMirror.jsm:4659

This also means we don't have test coverage for `onItemAnnotation{Set, Removed}` observers. :-)
Turns out we don't fire `onItemChanged` notifications for annos, either. Oops. >.<

We're slowly removing annos from Places, anyway, but livemarks still use them, so the mirror should try to do the right thing for now.
Summary: Bookmarks mirror should pass `aDontUpdateLastModified` to annotation observers → Ensure the mirror correctly fires change notifications for livemark annos
Comment on attachment 8989889 [details]
Ensure the bookmarks mirror fires item change observer notifications for livemark annos.

Marco Bonardo [::mak] has approved the revision.

https://phabricator.services.mozilla.com/D1962
Attachment #8989889 - Flags: review+
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4b75dda634bc
Ensure the bookmarks mirror fires item change observer notifications for livemark annos. r=mak
Backout by aiakab@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9c8e9cc23b1d
Backed out changeset 4b75dda634bc for presumed ES lint failures on request of lin
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9d206108bb4c
Ensure the bookmarks mirror fires item change observer notifications for livemark annos. r=mak
https://hg.mozilla.org/mozilla-central/rev/9d206108bb4c
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: