commit 263e474fd79da4adb5d051c0682b9808570e891c
parent da4f17fa4c7fab186aaadf6be4f12ba46959f718
Author: Jens Stutte <jstutte@mozilla.com>
Date: Wed, 1 Oct 2025 07:25:22 +0000
Bug 1991061 - IPPNetworkErrorObserver.stop should unregister "http-on-failed-opening-request" observer. r=ip-protection-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D266331
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browser/components/ipprotection/IPPNetworkErrorObserver.sys.mjs b/browser/components/ipprotection/IPPNetworkErrorObserver.sys.mjs
@@ -26,8 +26,8 @@ export class IPPNetworkErrorObserver {
}
this.#active = false;
this.#isolationKeys.clear();
+ Services.obs.removeObserver(this, "http-on-failed-opening-request");
Services.obs.removeObserver(this, "http-on-stop-request");
- Services.obs.addObserver(this, "http-on-failed-opening-request");
}
addIsolationKey(key) {