Bug 1804755 - Log name for failed ProxyReleaseEvent dispatch warning, r=xpcom-reviewers,jstutte

Differential Revision: https://phabricator.services.mozilla.com/D164259
This commit is contained in:
Nika Layzell 2022-12-08 23:26:52 +00:00
Родитель 1b1268b98a
Коммит 9ee7b343e3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -78,7 +78,9 @@ nsresult ProxyRelease(const char* aName, nsIEventTarget* aTarget,
rv = aTarget->Dispatch(ev, NS_DISPATCH_NORMAL);
if (NS_FAILED(rv)) {
NS_WARNING("failed to post proxy release event, leaking!");
NS_WARNING(nsPrintfCString(
"failed to post proxy release event for %s, leaking!", aName)
.get());
// It is better to leak the aDoomed object than risk crashing as
// a result of deleting it on the wrong thread.
}