Closed Bug 1911489 Opened 3 months ago Closed 27 days ago

Consider to remove PlacesCompletionCallback

Categories

(Toolkit :: Places, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: daisuke, Assigned: daisuke)

References

Details

Attachments

(2 files)

This is a follow-up of bug 1910338.
PlacesCompletionCallback had been used by only PlacesUIUtils to change the behavior by failure though, the code was no longer used in D218040. Several tests use it, but those look like replaceable with waitForNotification.
However, as it is the only way to detect failure while processing in nsIFaviconService.setFaviconForPage, we need to keep it for now.
In this bug, we introduce another way to detect failure (perhaps, using Promise that will be returned?), and remove the callback.

Depends on D218737

Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6badc2766d0f Make nsIFaviconService.setFaviconForPage() returns Promise r=places-reviewers,migration-reviewers,home-newtab-reviewers,nbarrett,mconley,mak,yazan https://hg.mozilla.org/integration/autoland/rev/1f24313b74af Remove PlacesCompletionCallback r=places-reviewers,mak
Flags: needinfo?(daisuke)
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f287f51804e9 Make nsIFaviconService.setFaviconForPage() returns Promise r=places-reviewers,migration-reviewers,home-newtab-reviewers,nbarrett,mconley,mak,yazan https://hg.mozilla.org/integration/autoland/rev/1cd2917a3e0b Remove PlacesCompletionCallback r=places-reviewers,mak
Status: ASSIGNED → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/7fae8fb5987b Adjust Thunderbird code for "Make nsIFaviconService.setFaviconForPage() returns Promise". rs=bustage-fix
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: