tor-browser

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

commit 7f5a20140882207e2795e0f1c314c04b749ae7e2
parent e2b9f13f8c3148badf58b9036eeee290c3079e5c
Author: Jens Stutte <jstutte@mozilla.com>
Date:   Wed,  1 Oct 2025 07:27:29 +0000

Bug 1991086  - AboutNewTab.uninit needs to unregister observers. r=mconley

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

Diffstat:
Mbrowser/modules/AboutNewTab.sys.mjs | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/browser/modules/AboutNewTab.sys.mjs b/browser/modules/AboutNewTab.sys.mjs @@ -238,6 +238,11 @@ export const AboutNewTab = { this.activityStream.uninit(); this.activityStream = null; } + Services.obs.removeObserver(this, TOPIC_APP_QUIT); + Services.obs.removeObserver( + this, + lazy.TelemetryReportingPolicy.TELEMETRY_TOU_ACCEPTED_OR_INELIGIBLE + ); this.initialized = false; },