Closed Bug 1508973 Opened 6 years ago Closed 5 years ago

Remove getAnnotationsForItem and unused APIs

Categories

(Toolkit :: Places, task, P2)

task
Points:
2

Tracking

()

RESOLVED FIXED
mozilla69
Iteration:
69.3 - Jun 10 - 23
Tracking Status
firefox69 --- fixed

People

(Reporter: mak, Assigned: mak)

References

Details

(Whiteboard: [fxsearch])

Attachments

(1 file)

getAnnotationsForItem is used when copying around nodes, to copy over annotations too. We don't have anymore any item annotation that is worth copying (the only remaining one is for Sync orphans).

Then the following APIs can be removed, afaict:
getItemAnnotationNames, getItemAnnotationInfo

The slight twist here, is that we'll probably need to re-implement annotation extraction for bookmarks export. This will be in BookmarkHTMLUtils.jsm/BookmarkJSONUtils.jsm. This could probably be based on the existing sql but made to be async.

I think there's tests that cover this - they should fail when the code surrounding getAnnotationsForItem is removed.

Iteration: --- → 69.3 - Jun 10 - 23
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Points: --- → 2
Type: enhancement → task
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/fe6afadb2f6a
Remove getAnnotationsForItem and unused bookmark annotations APIs. r=Standard8,lina
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: