Bug 1860952 warn when nsMaybeWeakPtr::GetValue() returns null for unexpected reasons...
commit0bea1b1f2745f99ab5c62d12cff88b9549c120b2
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 26 Oct 2023 00:22:49 +0000 (26 00:22 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Thu, 26 Oct 2023 00:22:49 +0000 (26 00:22 +0000)
treeeda5aebb1c82249116e921c305a1fc835a41a4f9
parent49f78e27b702b4edf86a8beff216e58664dd98c4
Bug 1860952 warn when nsMaybeWeakPtr::GetValue() returns null for unexpected reasons r=xpcom-reviewers,mccr8

such as failure to implement QueryInterface to T or nsISupportsWeakReference.

Null return values are assumed to either represent an object that no longer
exists or no object, and so these failures are not detected elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D191827
xpcom/base/nsMaybeWeakPtr.h