Closed Bug 1425555 Opened 7 years ago Closed 7 years ago

Avoid a fetch after showing the new bookmark dialog.

Categories

(Firefox :: Bookmarks & History, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

(Keywords: perf, Whiteboard: [fxsearch])

Attachments

(1 file)

In controller.js -> newItem we are currently doing a fetch just after the call to PlacesUIUtils.showBookmarkDialog. Once we remove the sync places transactions (bug 1131491), I think we should look at changing PlacesUIUtils.showBookmarkDialog so that it returns the new/affected guids. newItem can then simply select the new guid. This might not be possible due to how async PlacesTransactions work, but it feels like we should be able to somehow get the new guid to return somehow.
Keywords: perf
Priority: -- → P2
Assignee: nobody → standard8
Priority: P2 → P1
Comment on attachment 8960833 [details] Bug 1425555 - Avoid a database fetch after showing the new bookmark dialog. https://reviewboard.mozilla.org/r/229576/#review235402 it looks good and cheap :)
Attachment #8960833 - Flags: review?(mak77) → review+
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ed517bd510e7 Avoid a database fetch after showing the new bookmark dialog. r=mak
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: