Closed Bug 2042098 Opened 5 months ago Closed 3 months ago

Batch fetchBookmarksByURL calls in removeFoldersContents notifications

Categories

(Toolkit :: Places, task, P3)

task

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: mak, Assigned: cachan)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 external file)

removeFoldersContents in Bookmarks.sys.mjs runs await fetchBookmarksByURL(item, true) per descendant when emitting tag-update notifications. For a tag folder with N tagged URLs that's N round-trips.

Collect the URLs once, call fetchBookmarksByURLs(urls) before the notification loop, and look up entries from the returned Map per iteration.

Assignee: nobody → cachan
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: