tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e3d7479594dce1bda74d1cebf6381b1e18b23a8e
parent 757a8fa809b490a7a8c5a1398a622aa3ba6e905e
Author: Andrew McCreight <continuation@gmail.com>
Date:   Mon, 10 Nov 2025 14:31:44 +0000

Bug 1999056 - Include the topic in the unrecognized topic NS_WARNING in nsGlobalWindowInner and PresShell. r=layout-reviewers,emilio

Also shorten up the message so it still fits on one line.

Differential Revision: https://phabricator.services.mozilla.com/D271860

Diffstat:
Mdom/base/nsGlobalWindowInner.cpp | 2+-
Mlayout/base/PresShell.cpp | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dom/base/nsGlobalWindowInner.cpp b/dom/base/nsGlobalWindowInner.cpp @@ -5316,7 +5316,7 @@ nsresult nsGlobalWindowInner::Observe(nsISupports* aSubject, const char* aTopic, return rv.StealNSResult(); } - NS_WARNING("unrecognized topic in nsGlobalWindowInner::Observe"); + NS_WARNING(nsPrintfCString("unrecognized topic %s", aTopic).get()); return NS_ERROR_FAILURE; } diff --git a/layout/base/PresShell.cpp b/layout/base/PresShell.cpp @@ -10964,7 +10964,7 @@ PresShell::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - NS_WARNING("unrecognized topic in PresShell::Observe"); + NS_WARNING(nsPrintfCString("unrecognized topic %s", aTopic).get()); return NS_ERROR_FAILURE; }