Closed Bug 1836301 Opened 1 year ago Closed 1 year ago

Port bug 1835119: Remove NSCAP_FEATURE_USE_BASE

Categories

(Thunderbird :: Upstream Synchronization, task)

Thunderbird 115

Tracking

(Not tracked)

RESOLVED FIXED
115 Branch

People

(Reporter: freaktechnik, Assigned: emilio)

References

Details

Attachments

(1 file)

The bustage fix (https://hg.mozilla.org/comm-central/rev/264eb072ba8f) broke moving/deleting

Some kind of inheritance chains, like this:

https://searchfox.org/comm-central/rev/c44029650a19b926a4b467b5ed76cac5c76a30ec/mailnews/base/src/nsMsgDBFolder.h#91-96

Have multiple nsISupports* representations. E.g.:

  • nsSupportsWeakReference -> nsISupportsWeakReference -> nsISupports
  • nsIMsgFolder -> nsISupports

When comparing two nsISupports pointers, the pointer value is not quite
relevant, the COM identity is.

Before https://hg.mozilla.org/comm-central/rev/264eb072ba8f, the
do_QueryInterface to nsISupport acted like the "get canonical supports
pointer", so the pointer comparison worked.

Instead, use SameCOMIdentity to check for equality.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/90613f14b75a
Clean-up a bit imap copy / moves, and use SameCOMIdentity to compare nsISupports pointers properly. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: