Closed Bug 1685484 Opened 3 years ago Closed 3 years ago

redesign nsIMsgFolderListener to use specific types rather than nsISupports

Categories

(MailNews Core :: Backend, task)

Tracking

(thunderbird_esr78 wontfix, thunderbird90+ affected)

RESOLVED FIXED
90 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird90 + affected

People

(Reporter: mkmelin, Assigned: benc)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Avoid using nsISupports where possible in nsIMsgFolderListener.idl

https://searchfox.org/comm-central/rev/57c0aa5097805106b46b4d49b8a171077751483f/mailnews/base/public/nsIMsgFolderListener.idl#199 is the last of the nsIArray's in Thunderbird idls (in a comment, but the comment seems correct)

Blocks: 1692919
Keywords: leave-open

This callback replaces the "JunkStatusChanged" variant of the
nsIMsgFolderListener.itemEvent() callback, and uses a concrete array to pass
in messages rather than the old nsIArray-passed-in-via-an-nsISupports-param
trick.

Assignee: nobody → benc
Status: NEW → ASSIGNED

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/dec533c8f718
Add nsIMsgFolderListener.msgsJunkStatusChanged() callback. r=mkmelin
https://hg.mozilla.org/comm-central/rev/31e99dd7762a
Split nsIMsgFolderListener.itemEvent() into separate methods. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

Repair Folder now blows up because the notifyItemEvent there was missed..
Edit: oh I see you're fixing it in a bug that hasn't landed yet.

Flags: needinfo?(benc)
Flags: needinfo?(benc)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2fc23bba25ec
Update folder repair to use new notification callbacks. r=darktrojan

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED

There is a left over mentioning of nsIFolderListener::itemEvent() in
https://searchfox.org/comm-central/rev/7923bcceab6029d38d0be76a021424b300997dbe/mailnews/base/public/nsIMsgFolderListener.idl#206-210
which I think was removed by this bug.

Should it be replaced by

This notification will be generated immediately prior to the nsIFolderListener::NotifyCompactCompleted() notification.

?

Flags: needinfo?(benc)

Thanks John!
I opened up Bug 1780703 for a small fix.
Also led me to spot a potentially more serious issue which I wrote up Bug 1780658.

Flags: needinfo?(benc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: